]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
8375d34
)
Shortcuts: Prevented help shown when in inputs
author
Dan Brown
<redacted>
Mon, 23 Oct 2023 10:04:09 +0000
(11:04 +0100)
committer
Dan Brown
<redacted>
Mon, 23 Oct 2023 10:04:09 +0000
(11:04 +0100)
For #4606
resources/js/components/shortcuts.js
patch
|
blob
|
history
diff --git
a/resources/js/components/shortcuts.js
b/resources/js/components/shortcuts.js
index 85a7c3da711a1bf6bedca3760c69065982eefcaf..b22c467318e73f383259119d5b96126b8e39c98f 100644
(file)
--- a/
resources/js/components/shortcuts.js
+++ b/
resources/js/components/shortcuts.js
@@
-29,17
+29,16
@@
export class Shortcuts extends Component {
return;
}
return;
}
- this.handleShortcutPress(event);
- });
-
- window.addEventListener('keydown', event => {
if (event.key === '?') {
if (this.hintsShowing) {
this.hideHints();
} else {
this.showHints();
}
if (event.key === '?') {
if (this.hintsShowing) {
this.hideHints();
} else {
this.showHints();
}
+ return;
}
}
+
+ this.handleShortcutPress(event);
});
}
});
}