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
05575871
Commit
05575871
authored
Jan 25, 2016
by
Jacek Sowiński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for further input for 'pri' and 'postpone'
This way user can type offsets and priorities at ease without rush.
parent
2057dcae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
topydo/ui/TodoListWidget.py
topydo/ui/TodoListWidget.py
+3
-1
No files found.
topydo/ui/TodoListWidget.py
View file @
05575871
...
...
@@ -141,6 +141,7 @@ class TodoListWidget(urwid.LineBox):
def
keypress
(
self
,
p_size
,
p_key
):
urwid
.
emit_signal
(
self
,
'remove_pending_action'
)
requires_further_input
=
[
'postpone'
,
'postpone_s'
,
'pri'
]
keymap
,
keystates
=
self
.
keymap
...
...
@@ -158,7 +159,8 @@ class TodoListWidget(urwid.LineBox):
# keystate in case user will hit another key and add an action
# waiting for execution if user won't type anything further.
self
.
keystate
=
shortcut
self
.
_add_pending_action
(
action
,
p_size
)
if
action
not
in
requires_further_input
:
self
.
_add_pending_action
(
action
,
p_size
)
else
:
# Only action is matched. Handle it and reset keystate.
self
.
resolve_action
(
action
,
p_size
)
...
...
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