Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.5, 2.1, and 2.1.1

stable workbench: add another shortcut for closing repo tabs: Ctrl+W

Changeset 42812a87ed8c

Parent 221ff818faf1

by Eduard-Cristian Stefan

Changes to one file · Browse files at 42812a87ed8c Showing diff from parent 221ff818faf1 Diff from another changeset...

 
184
185
186
187
 
188
 
 
 
 
189
190
191
 
184
185
186
 
187
188
189
190
191
192
193
194
195
@@ -184,8 +184,12 @@
    newaction(_("&Open Repository..."), self.openRepository,   shortcut='Open', menu='file') - newaction(_("&Close Repository"), self.closeRepository, + closerepo = newaction(_("&Close Repository"), self.closeRepository,   shortcut='Close', enabled='repoopen', menu='file') + if os.name == 'nt': + sc = closerepo.shortcuts() + sc.append(keysequence('Ctrl+W')) + closerepo.setShortcuts(sc)   newseparator(menu='file')   newaction(_("&New Repository..."), self.newRepository,   shortcut='New', menu='file', icon='hg-init')