From: ThibG Date: Mon, 5 Oct 2020 20:04:06 +0000 (+0200) Subject: [Glitch] Ignore alt-key hotkeys in text fields X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f7306c7b7cf8b705e235719e70807ffd3521b34d;p=mastodon.git [Glitch] Ignore alt-key hotkeys in text fields Port 63770d3aac1611155213e4c903424849cc254519 to glitch-soc Signed-off-by: Thibaut Girka --- diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index fa4068fa3..1294a8a16 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -385,7 +385,7 @@ class UI extends React.Component { componentDidMount () { this.hotkeys.__mousetrap__.stopCallback = (e, element) => { - return ['TEXTAREA', 'SELECT', 'INPUT'].includes(element.tagName) && !e.altKey; + return ['TEXTAREA', 'SELECT', 'INPUT'].includes(element.tagName); }; if (typeof document.hidden !== 'undefined') { // Opera 12.10 and Firefox 18 and later support