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

This commit is contained in:
Kovid Goyal 2016-06-04 12:29:44 +05:30
parent fb97ed4ee4
commit f7be73f523

View File

@ -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')