From 943186a51c1c2d3c1ea307b7f4c233cfb6c75243 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 15 Jan 2020 18:47:55 +0530 Subject: [PATCH] add back the useCapture option in mousetrap --- lib/containers/hyper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;