Keyboard event shift + 6 sends incorrect keyCode (0, should be 54)
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: pedropaulosuzuki1, Unassigned)
Details
Attachments
(1 file)
|
38.17 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Steps to reproduce:
'pt-BR' ABNT2 keyboard, GNU/Linux, Firefox 145.0.1, X11.
Try to capture a 'keydown', 'keyup' or 'keypress' event and capture Shift + 6 in any way.
Test:
- Open new tab
document.open();document.close();document.addEventListener('keydown', event => console.log(event));- Press Shift + 6
Actual results:
{
key: "Dead",
keyCode: 0,
which: 0
}
Expected results:
{
key: "¨",
keyCode: 54,
which: 54
}
Comment 1•1 day ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 2•1 day ago
|
||
Chromium returns this:
{ key: "Dead", keyCode: 54, which: 54 }
Comment 3•1 day ago
|
||
Please run on terminal with MOZ_LOG=KeyboardHandler:4,sync env variable and investigate the log - it should show how the key is processed.
| Reporter | ||
Comment 4•1 hour ago
|
||
| Reporter | ||
Comment 5•1 hour ago
|
||
Maybe related to https://bugzilla.mozilla.org/show_bug.cgi?id=1968360?
Description
•