From f7be73f523fdfcd2e884f87c54693298c1bc4dee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Jun 2016 12:29:44 +0530 Subject: [PATCH] Make the default shortcut for remove books Backspace on OS X since many mac keyboards have no delete key and the backspace key is labelled as delete --- src/calibre/gui2/actions/delete.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/delete.py b/src/calibre/gui2/actions/delete.py index 7cba22bf14..3510e98077 100644 --- a/src/calibre/gui2/actions/delete.py +++ b/src/calibre/gui2/actions/delete.py @@ -11,6 +11,7 @@ from collections import Counter from PyQt5.Qt import QObject, QTimer, QModelIndex +from calibre.constants import isosx from calibre.gui2 import error_dialog, question_dialog from calibre.gui2.dialogs.delete_matching_from_device import DeleteMatchingFromDeviceDialog from calibre.gui2.dialogs.confirm_delete import confirm @@ -84,7 +85,7 @@ class MultiDeleter(QObject): # {{{ class DeleteAction(InterfaceAction): name = 'Remove Books' - action_spec = (_('Remove books'), 'trash.png', _('Delete books'), 'Del') + action_spec = (_('Remove books'), 'trash.png', _('Delete books'), 'Backspace' if isosx else 'Del') action_type = 'current' action_add_menu = True action_menu_clone_qaction = _('Remove selected books')