about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/ui
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-10-05 22:04:06 +0200
committerThibaut Girka <thib@sitedethib.com>2020-10-21 19:34:44 +0200
commitf7306c7b7cf8b705e235719e70807ffd3521b34d (patch)
treececb8f1d025a45eddc0260cd5eda25a0d4788087 /app/javascript/flavours/glitch/features/ui
parent8071613dd7fcf6214e59929be884eaf4b9704782 (diff)
[Glitch] Ignore alt-key hotkeys in text fields
Port 63770d3aac1611155213e4c903424849cc254519 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui')
-rw-r--r--app/javascript/flavours/glitch/features/ui/index.js2
1 files changed, 1 insertions, 1 deletions
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