From e6657d999a5252b5ada9ce9cbe76bc315a66cd04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Jan 2020 08:58:44 +0530 Subject: [PATCH] Viewer: Fix Ctrl+Shift shortcuts not being displayed properly on windows --- src/pyj/read_book/shortcuts.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/shortcuts.pyj b/src/pyj/read_book/shortcuts.pyj index 33b3b47352..9b89669c12 100644 --- a/src/pyj/read_book/shortcuts.pyj +++ b/src/pyj/read_book/shortcuts.pyj @@ -51,7 +51,7 @@ def get_key_text(evt): cc = key.charCodeAt(0) # on windows in webengine pressing ctrl+ascii char gives us an ascii # control code - if (0 < cc < 32 or key is 'Enter') and evt.ctrlKey and not evt.metaKey and not evt.shiftKey and not evt.altKey: + if (0 < cc < 32 or key is 'Enter') and evt.ctrlKey and not evt.metaKey and not evt.altKey: if key is 'Enter': if evt.code and evt.code is not 'Enter': key = 'm'