From b42b2825c401fc8b78b25cf10e8a8a85e1154fa3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 20 Aug 2019 10:43:03 +0200 Subject: [PATCH] explicitly check for modifier keydown events --- src/components/structures/LoggedInView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index 0ef9e362be..17c8e91cb9 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -349,7 +349,8 @@ const LoggedInView = React.createClass({ let handled = false; const ctrlCmdOnly = isOnlyCtrlOrCmdKeyEvent(ev); - const hasModifier = ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey; + const hasModifier = ev.altKey || ev.ctrlKey || ev.metaKey || ev.shiftKey || + ev.key === "Alt" || ev.key === "Control" || ev.key === "Meta" || ev.key === "Shift"; switch (ev.keyCode) { case KeyCode.PAGE_UP: