add back the useCapture option in mousetrap

This commit is contained in:
Labhansh Agrawal 2020-01-15 18:47:55 +05:30 committed by Benjamin Staneck
parent 51d4a36584
commit 943186a51c

View file

@ -55,7 +55,7 @@ class Hyper extends React.PureComponent<any, any> {
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;