Make pressing Enter a shortcut for the View action, in addition to V

This commit is contained in:
Kovid Goyal 2017-11-17 18:56:06 +05:30
parent 07f5d2ecf2
commit 9ce6c24e1f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ calibre has several keyboard shortcuts to save you time and mouse movement. Thes
- Save to disk - Save to disk
* - :kbd:`T` * - :kbd:`T`
- Edit book - Edit book
* - :kbd:`V` * - :kbd:`V` or `Enter`
- View - View
* - :kbd:`Alt+V/Cmd+V in macOS` * - :kbd:`Alt+V/Cmd+V in macOS`
- View specific format - View specific format

View File

@ -36,7 +36,7 @@ class HistoryAction(QAction):
class ViewAction(InterfaceAction): class ViewAction(InterfaceAction):
name = 'View' name = 'View'
action_spec = (_('View'), 'view.png', _('Read books'), _('V')) action_spec = (_('View'), 'view.png', _('Read books'), (_('V'), 'Return'))
action_type = 'current' action_type = 'current'
action_add_menu = True action_add_menu = True
action_menu_clone_qaction = True action_menu_clone_qaction = True