Open Bug 1996842 Opened 10 months ago Updated 10 months ago

CapsLock state only correct on keyup event

Categories

(GeckoView :: IME, defect)

Firefox 144
All
Android
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: adaha, Unassigned)

Details

Steps to reproduce:

  1. Connect physical keyboard to Android device
  2. Go to https://w3c.github.io/uievents/tools/key-event-viewer
  3. Enable Caps Lock
  4. Press any key

Actual results:

getModifierState("CapsLock") is only True on the keyup event. On keydown/keypress, it is False.

The shift state is True on keydown/keypress, and False on keyup.

Expected results:

The CapsLock state should be True for all key events until CapsLock is deactivated. The shift state should be false if shift is not pressed.

Chrome has same problem. Although I don't debug this, I guess that this may be Android OS bugs.

Component: General → IME
Product: Firefox for Android → GeckoView
Severity: -- → S3

Just tested this on Chrome 141 on an Android S7 tab and did not see the issue there.

(In reply to adaha from comment #2)

Just tested this on Chrome 141 on an Android S7 tab and did not see the issue there.

I meant a Samsung Galaxy S7 tablet*

You need to log in before you can comment on or make changes to this bug.