Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
0d086fe7
Commit
0d086fe7
authored
Jan 08, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the mouse wheel
parent
5f5a125a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
topydo/ui/TodoListWidget.py
topydo/ui/TodoListWidget.py
+7
-0
No files found.
topydo/ui/TodoListWidget.py
View file @
0d086fe7
...
...
@@ -157,6 +157,13 @@ class TodoListWidget(urwid.LineBox):
else
:
return
self
.
listbox
.
keypress
(
p_size
,
p_key
)
def
mouse_event
(
self
,
p_size
,
p_event
,
p_button
,
p_column
,
p_row
,
p_focus
):
if
p_event
==
'mouse press'
:
if
p_button
==
4
:
# up
self
.
listbox
.
keypress
(
p_size
,
'up'
)
elif
p_button
==
5
:
#down:
self
.
listbox
.
keypress
(
p_size
,
'down'
)
def
selectable
(
self
):
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment