Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

commit: add ctrl-o accelerator for commit button

Qct does this, so commit can be done without cursor keys or mouse

Changeset 25762c2a94ef

Parent 94f2bee6844f

by Steve Borho

Changes to one file · Browse files at 25762c2a94ef Showing diff from parent 94f2bee6844f Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
87
88
89
 
 
90
91
92
 
93
94
95
 
158
159
160
 
 
 
 
 
 
161
162
163
 
87
88
89
90
91
92
 
 
93
94
95
96
 
159
160
161
162
163
164
165
166
167
168
169
170
@@ -87,9 +87,10 @@
  tbbuttons.insert(2, gtk.SeparatorToolItem())   self._undo_button = self.make_toolbutton(gtk.STOCK_UNDO, '_Undo',   self._undo_clicked, tip='undo recent commit') + self._commit_button = self.make_toolbutton(gtk.STOCK_OK, '_Commit', + self._commit_clicked, tip='commit')   tbbuttons.insert(2, self._undo_button) - tbbuttons.insert(2, self.make_toolbutton(gtk.STOCK_OK, '_Commit', - self._commit_clicked, tip='commit')) + tbbuttons.insert(2, self._commit_button)   return tbbuttons     @@ -158,6 +159,12 @@
  self._vpaned.add1(vbox)   self._vpaned.add2(status_body)   self._vpaned.set_position(self._setting_vpos) + + # make ctrl-o trigger commit button + accel_group = gtk.AccelGroup() + self.add_accel_group(accel_group) + self._commit_button.add_accelerator("clicked", accel_group, ord("o"), + gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)   return self._vpaned