diff --git a/lib/containers/hyper.tsx b/lib/containers/hyper.tsx index 172f883d..25a6de8a 100644 --- a/lib/containers/hyper.tsx +++ b/lib/containers/hyper.tsx @@ -55,7 +55,7 @@ class Hyper extends React.PureComponent { attachKeyListeners() { if (!this.mousetrap) { - this.mousetrap = new Mousetrap(); + this.mousetrap = new (Mousetrap as any)(window, true); this.mousetrap.stopCallback = () => { // All events should be intercepted even if focus is in an input/textarea return false;