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

Fix #5306: Stop hotkeys in input fields even when shift is pressed (#5309)

AZERTY layouts require pressing shift to press a number at all, so
it triggers a column switch even when simply typing numbers in
textarea
parent 552d22be
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.shiftKey || e.metaKey) && ['TEXTAREA', 'SELECT', 'INPUT'].includes(element.tagName);
return !(e.altKey || e.ctrlKey || e.metaKey) && ['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