Closed Bug 1840174 Opened 2 years ago Closed 2 years ago

shiftKey has inverted value on wayland

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 114
defect

Tracking

()

RESOLVED DUPLICATE of bug 1792676

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

Summary: shiftKey → shiftKey has inverted value on wayland

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

This seems to be similar to bug 1792676.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1792676
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.