Commits

Yuya Nishihara committed 0efe52b

shortcuts: give Ctrl+Shift+L for openlocal (fixes #2118)

Ctrl+Shift+O conflicts with "Show Repository Registry".

This unifies the shortcut for openlocal (=openfile), and removes the shortcut
from FilectxActions.editlocal, which was previously Ctrl+Shift+L.

In manifest view, Ctrl+Shift+E, which is the shortcut for WctxActions.edit,
is assigned not to editlocal, but to editfile action. I guess that's because
the manifest view is intended to handle committed (non-local) data.

Comments (0)

Files changed (2)

tortoisehg/hgqt/filectxactions.py

              _('View file as it appeared at this revision'), self.editfile),
             ('save', _('Save at Revision'), None, 'Shift+Ctrl+S',
              _('Save file as it appeared at this revision'), self.savefile),
-            ('ledit', _('Edit Local'), 'edit-file', 'Shift+Ctrl+L',
+            ('ledit', _('Edit Local'), 'edit-file', None,
              _('Edit current file in working copy'), self.editlocal),
-            ('lopen', _('Open Local'), '', 'Shift+Ctrl+O',
+            ('lopen', _('Open Local'), '', 'Shift+Ctrl+L',
              _('Edit current file in working copy'), self.openlocal),
             ('copypath', _('Copy Path'), '', 'Shift+Ctrl+C',
              _('Copy full path of file(s) to the clipboard'), self.copypath),

tortoisehg/hgqt/wctxactions.py

         make(_('&Diff to parent'), vdiff, frozenset('MAR!'), 'visualdiff', 'CTRL+D')
         make(_('Copy patch'), copyPatch, frozenset('MAR!'), 'copy-patch')
         make(_('Edit'), edit, frozenset('MACI?'), 'edit-file', 'SHIFT+CTRL+E')
-        make(_('Open'), openfile, frozenset('MACI?'), '', 'SHIFT+CTRL+O')
+        make(_('Open'), openfile, frozenset('MACI?'), '', 'SHIFT+CTRL+L')
         allactions.append(None)
         make(_('Open subrepository'), opensubrepo, frozenset('S'),
             'thg-repository-open', 'Shift+Ctrl+O')