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

gdialog: set CTRL-Q accelerator to close the window

Works for status, commit, log, changeset, datamine

Changeset 4d3802c483ed

Parent 9ebb3ce0158e

by Steve Borho

Changes to one file · Browse files at 4d3802c483ed Showing diff from parent 9ebb3ce0158e Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
299
300
301
 
 
 
 
 
 
302
303
304
 
299
300
301
302
303
304
305
306
307
308
309
310
@@ -299,6 +299,12 @@
  self.toolbar = toolbar   vbox.pack_start(toolbar, False, False, 0)   + # ctrl-Q quits + accel_group = gtk.AccelGroup() + self.add_accel_group(accel_group) + button.add_accelerator("clicked", accel_group, ord("q"), + gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE) +   # Subclass returns the main body   body = self.get_body()   vbox.pack_start(body, True, True, 0)