GTG

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

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

This patch simply binds "Ctrl-L" to move the focus to the Quick Add entry field.

Nothing much to see here.

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 06:37:56 +0000
4@@ -293,7 +293,12 @@
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 def __restore_state_from_conf(self):
16
17 # Extract state from configuration dictionary

Subscribers

People subscribed via source and target branches

to status/vote changes: