mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
add back the useCapture option in mousetrap
This commit is contained in:
parent
51d4a36584
commit
943186a51c
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class Hyper extends React.PureComponent<any, any> {
|
||||||
|
|
||||||
attachKeyListeners() {
|
attachKeyListeners() {
|
||||||
if (!this.mousetrap) {
|
if (!this.mousetrap) {
|
||||||
this.mousetrap = new Mousetrap();
|
this.mousetrap = new (Mousetrap as any)(window, true);
|
||||||
this.mousetrap.stopCallback = () => {
|
this.mousetrap.stopCallback = () => {
|
||||||
// All events should be intercepted even if focus is in an input/textarea
|
// All events should be intercepted even if focus is in an input/textarea
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue