diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index ce5df47138..b3607ec5b5 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -485,9 +485,10 @@ class LoggedInView extends React.Component { unread: true, }); break; + default: + // if we do not have a handler for it, pass it to the platform which might + handled = PlatformPeg.get().onKeyDown(ev); } - // if we do not have a handler for it, pass it to the platform which might - handled = PlatformPeg.get().onKeyDown(ev); if (handled) { ev.stopPropagation(); ev.preventDefault();