Skip to content

Commit

Permalink
Fix crash in input boxes on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Jan 27, 2017
1 parent ba1506b commit 3807186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/py/lib/input_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def keyboard_event(self, msg):
self.text_changed(self)
self.draw()
elif msg.event.key == b'\n':
self.ok_click()
self.ok_click(None)
elif msg.event.key != b'\x00':
text = self.tr.text
before = text[:self.cursor_index]
Expand Down

0 comments on commit 3807186

Please sign in to comment.