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

gdialog: add 'y' and 'n' accelerators for Confirm dialog

Changeset be3e3054caf0

Parent 7f5ae658182f

by Steve Borho

Changes to one file · Browse files at be3e3054caf0 Showing diff from parent 7f5ae658182f Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​gdialog.py Stacked
 
65
66
67
 
 
 
 
 
 
 
68
69
70
 
65
66
67
68
69
70
71
72
73
74
75
76
77
@@ -65,6 +65,13 @@
  message += ' ...\n'   break   self.format_secondary_text(toutf(message)) + accel_group = gtk.AccelGroup() + self.add_accel_group(accel_group) + buttons = self.get_children()[0].get_children()[1].get_children() + buttons[1].add_accelerator("clicked", accel_group, ord("y"), + 0, gtk.ACCEL_VISIBLE) + buttons[0].add_accelerator("clicked", accel_group, ord("n"), + 0, gtk.ACCEL_VISIBLE)      class GDialog(gtk.Window):