Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

thgconfig: hook ctrl-Enter to 'OK' response

Ctrl-Enter will accept changes and exit

Changeset e205564c1ea0

Parent b57c25106475

by Steve Borho

Changes to one file · Browse files at e205564c1ea0 Showing diff from parent b57c25106475 Diff from another changeset...

 
553
554
555
 
556
557
558
 
692
693
694
 
 
 
695
696
697
 
553
554
555
556
557
558
559
 
693
694
695
696
697
698
699
700
701
@@ -553,6 +553,7 @@
    # Catch close events   self.connect('response', self.should_live) + self.connect('thg-accept', self.thgaccept)   self.connect('delete-event', self.delete_event)     combo = gtk.combo_box_new_text() @@ -692,6 +693,9 @@
  def delete_event(self, dlg, event):   return True   + def thgaccept(self, dlg): + self.response(gtk.RESPONSE_OK) +   def should_live(self, dialog=None, resp=None):   if resp == gtk.RESPONSE_APPLY:   self._apply_clicked()