diff options
author | Moonchild <moonchild@palemoon.org> | 2022-10-17 12:07:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-10-17 12:28:26 +0000 |
commit | 74b3ce90d73f576a36888c06e413b99b61687b80 (patch) | |
tree | 81949969871ddf07f10d27a85a352ef2bbc09f22 /modules | |
parent | ebd7672d6ba8617c99f80f026b1415a6aafe00a5 (diff) | |
download | uxp-74b3ce90d73f576a36888c06e413b99b61687b80.tar.gz |
Issue #2019 - Do not dispatch keypress event for non-printable keys.
This will prevent the keypress DOM event from firing on keypresses
that do not produce printable keys (e.g. editing nav keys) in content.
This should not affect any chrome events that are in use.
Event dispatch can be re-enabled if necessary with the added pref.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/libpref/init/all.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index b0c064fc0f..bac789c96b 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -223,6 +223,10 @@ pref("dom.keyboardevent.code.enabled", true); // even if this is true). pref("dom.keyboardevent.dispatch_during_composition", false); +// If this is true, TextEventDispatcher dispatches keypress events +// for the input of non-printable characters (content only). +pref("dom.keyboardevent.keypress.dispatch_non_printable_in_content", false); + // Whether URL,Location,Link::GetHash should be percent encoded // in setter and percent decoded in getter (old behaviour = true) pref("dom.url.encode_decode_hash", true); |