E-book viewer: Make cmd+f a default shortcut for search

This commit is contained in:
Kovid Goyal 2022-07-21 10:50:56 +05:30
parent 77478fd90c
commit 59c10115e1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -20,7 +20,7 @@ def parse_key_repr(sc):
ans.ctrlKey = True ans.ctrlKey = True
elif q is 'alt': elif q is 'alt':
ans.altKey = True ans.altKey = True
elif q is 'meta': elif q is 'meta' or q is 'cmd':
ans.metaKey = True ans.metaKey = True
elif q is 'shift': elif q is 'shift':
ans.shiftKey = True ans.shiftKey = True
@ -219,7 +219,7 @@ def common_shortcuts(): # {{{
), ),
'start_search': desc( 'start_search': desc(
v"['/', 'Ctrl+f']", v"['/', 'Ctrl+f', 'Cmd+f']",
'ui', 'ui',
_('Start search'), _('Start search'),
), ),