Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

bookmark: focus 'New name' entry in rename mode

Changeset 449db6a44726

Parent 52294df5a37d

by Yuki KODAMA

Changes to one file · Browse files at 449db6a44726 Showing diff from parent 52294df5a37d Diff from another changeset...

 
65
66
67
68
 
69
70
71
72
73
74
75
 
78
79
80
81
 
 
 
 
82
83
84
 
65
66
67
 
68
69
70
 
 
71
72
73
 
76
77
78
 
79
80
81
82
83
84
85
@@ -65,11 +65,9 @@
  entry.set_width_chars(12)   entry.set_text(rev)   table.add_row(_('Revision:'), entry) - elif type == TYPE_RENAME: + else:   self._name_input = entry   table.add_row(_('New name:'), entry) - else: - raise _('unexpected type: %s') % type     # signal handlers   self.connect('response', self.dialog_response) @@ -78,7 +76,10 @@
    # prepare to show   self._refresh(clear=False) - self._bookmarklistbox.grab_focus() + if type == TYPE_ADDREMOVE: + self._bookmarklistbox.grab_focus() + else: + self._name_input.grab_focus()     def _refresh(self, clear=True):   """ update display on dialog with recent repo data """