]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Ignore alt-key hotkeys in text fields
authorThibG <thib@sitedethib.com>
Mon, 5 Oct 2020 20:04:06 +0000 (22:04 +0200)
committerThibaut Girka <thib@sitedethib.com>
Wed, 21 Oct 2020 17:34:44 +0000 (19:34 +0200)
Port 63770d3aac1611155213e4c903424849cc254519 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/ui/index.js

index fa4068fa34d4876eb50d95e596a02c7f1a93abf5..1294a8a1608834a5ef79c39b84097abf82484a92 100644 (file)
@@ -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