File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change @@ -303,6 +303,14 @@ def mouse_event(self, *args):
303303 finally :
304304 self ._bpy_may_move_cursor = False
305305
306+ class BPythonListBox (urwid .ListBox ):
307+ """Like `urwid.ListBox`, except that it does not eat up and
308+ down keys.
309+ """
310+ def keypress (self , size , key ):
311+ if key not in ["up" , "down" ]:
312+ return urwid .ListBox .keypress (self , size , key )
313+ return key
306314
307315class Tooltip (urwid .BoxWidget ):
308316
@@ -402,7 +410,7 @@ class URWIDRepl(repl.Repl):
402410 def __init__ (self , event_loop , palette , interpreter , config ):
403411 repl .Repl .__init__ (self , interpreter , config )
404412
405- self .listbox = urwid . ListBox (urwid .SimpleListWalker ([]))
413+ self .listbox = BPythonListBox (urwid .SimpleListWalker ([]))
406414
407415 # String is straight from bpython.cli
408416 self .statusbar = Statusbar (
You can’t perform that action at this time.
0 commit comments