Commit b3af3b37 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Bring back mouse clicking to select items

parent 280c77f3
...@@ -161,8 +161,12 @@ class TodoListWidget(urwid.LineBox): ...@@ -161,8 +161,12 @@ class TodoListWidget(urwid.LineBox):
if p_event == 'mouse press': if p_event == 'mouse press':
if p_button == 4: # up if p_button == 4: # up
self.listbox.keypress(p_size, 'up') self.listbox.keypress(p_size, 'up')
return
elif p_button == 5: #down: elif p_button == 5: #down:
self.listbox.keypress(p_size, 'down') self.listbox.keypress(p_size, 'down')
return
return super().mouse_event(p_size, p_event, p_button, p_column, p_row, p_focus)
def selectable(self): def selectable(self):
return True return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment