logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 476e79b8e340c9103352a0799e102e4aca1a5593
parent: 19d3317a69bebf5239e7a4ef157be5f19b2a351b
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Wed, 11 Oct 2017 16:31:07 +0200

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

Because alt+n is a way to enter some kinda letter on some keyboard

Diffstat:

Mapp/javascript/mastodon/features/ui/index.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js @@ -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); }; }