shiftKey has inverted value on wayland
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: Alaanor, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Steps to reproduce:
If the page contains a code such as "document.body.onkeydown = (event) => console.log('onkeydown', event.shiftKey)" then event.shiftKey will have the inversed value.
See this jsfiddle: https://jsfiddle.net/Alaanor/mfryp17w/1/ and press/release shift and see the console.
Where it works: xorg+firefox, xorg+chromium, wayland+chromium
Where it doesn't work: wayland+firefox, wayland+firefox_nightly
Actual results:
onkeydown event.shiftKey return false
onkeyup event.shiftKey return true
Expected results:
onkeydown event.shiftKey return true
onkeyup event.shiftKey return false
Reporter | ||
Updated•2 years ago
|
Comment 1•2 years 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.
This seems to be similar to bug 1792676.
Description
•