Skip to content
Snippets Groups Projects
Commit 476e79b8 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fully disable hotkeys when input element is focused (#5324)

Because alt+n is a way to enter some kinda letter on some keyboard
parent 19d3317a
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ export default class UI extends React.Component {
componentDidMount () {
this.hotkeys.__mousetrap__.stopCallback = (e, element) => {
return !(e.altKey || e.ctrlKey || e.metaKey) && ['TEXTAREA', 'SELECT', 'INPUT'].includes(element.tagName);
return ['TEXTAREA', 'SELECT', 'INPUT'].includes(element.tagName);
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment