From 59c10115e1db93b1022261e5d2a725c430e58abd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Jul 2022 10:50:56 +0530 Subject: [PATCH] E-book viewer: Make cmd+f a default shortcut for search --- src/pyj/read_book/shortcuts.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/shortcuts.pyj b/src/pyj/read_book/shortcuts.pyj index 0e85434490..3d9e00e415 100644 --- a/src/pyj/read_book/shortcuts.pyj +++ b/src/pyj/read_book/shortcuts.pyj @@ -20,7 +20,7 @@ def parse_key_repr(sc): ans.ctrlKey = True elif q is 'alt': ans.altKey = True - elif q is 'meta': + elif q is 'meta' or q is 'cmd': ans.metaKey = True elif q is 'shift': ans.shiftKey = True @@ -219,7 +219,7 @@ def common_shortcuts(): # {{{ ), 'start_search': desc( - v"['/', 'Ctrl+f']", + v"['/', 'Ctrl+f', 'Cmd+f']", 'ui', _('Start search'), ),