GTG

Merge lp:~jml/gtg/more-keyboard-bindings into lp:~gtg/gtg/old-trunk

Proposed by Jonathan Lange
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jml/gtg/more-keyboard-bindings
Merge into: lp:~gtg/gtg/old-trunk
Diff against target: None lines
To merge this branch: bzr merge lp:~jml/gtg/more-keyboard-bindings
Reviewer Review Type Date Requested Status
Bertrand Rousseau (community) Approve
Review via email: mp+8632@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jonathan Lange (jml) wrote :

This patch binds Ctrl-D to "Mark as Done" and Ctrl-I to "Dismissed", making sure that these combinations are discoverable from the menu.

This builds on work done in lp:~jml/gtg/keyboard-bindings.

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'GTG/taskbrowser/browser.py'
2--- GTG/taskbrowser/browser.py 2009-06-24 08:11:24 +0000
3+++ GTG/taskbrowser/browser.py 2009-07-12 08:05:05 +0000
4@@ -293,7 +293,23 @@
5 edit_button = self.wTree.get_widget("edit_b")
6 key, mod = gtk.accelerator_parse("<Control>e")
7 edit_button.add_accelerator("clicked", agr, key, mod, gtk.ACCEL_VISIBLE)
8-
9+
10+ quickadd_field = self.wTree.get_widget('quickadd_field')
11+ key, mod = gtk.accelerator_parse('<Control>l')
12+ quickadd_field.add_accelerator(
13+ 'grab-focus', agr, key, mod, gtk.ACCEL_VISIBLE)
14+
15+ mark_done_mi = self.wTree.get_widget('mark_done_mi')
16+ key, mod = gtk.accelerator_parse('<Control>d')
17+ mark_done_mi.add_accelerator(
18+ 'activate', agr, key, mod, gtk.ACCEL_VISIBLE)
19+
20+ task_dismiss = self.wTree.get_widget('task_dismiss')
21+ key, mod = gtk.accelerator_parse('<Control>i')
22+ task_dismiss.add_accelerator(
23+ 'activate', agr, key, mod, gtk.ACCEL_VISIBLE)
24+
25+
26 def __restore_state_from_conf(self):
27
28 # Extract state from configuration dictionary

Subscribers

People subscribed via source and target branches

to status/vote changes: