https://bugs.kde.org/show_bug.cgi?id=522872
Bug ID: 522872
Summary: Plasma Keyboard input in Chromium does not emit
keydown / keyup events
Classification: Plasma
Product: Plasma Keyboard
Version First unspecified
Reported In:
Platform: Bazzite
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 194163
--> https://bugs.kde.org/attachment.cgi?id=194163&action=edit
minimal html reproduction of issue
DESCRIPTION
Keyboard events sent to Chromium differ depending on whether or not Plasma
Keyboard is enabled in the Virtual Keyboards setting. (Chromium here was tested
with Chrome and Brave from Flatpak. Firefox with Flatpak.)
Browser + Virtual Keyboard combinations:
Chromium + Plamsa Keyboard events:
keypress -> beforeinput -> input
Chromium + None events:
keydown -> keypress -> beforeinput -> input -> keyup
Firefox + Any events:
keydown -> keypress -> beforeinput -> input -> keyup
I discovered this issue because I was using WealthSimple's web app and i was
unable to type in number fields. Their number fields are initialized by the
keydown event, thus without it it is undefined and errors out and fails to
receive any input. Upon receiving any keydown event and updating the undefined
field, it works correctly. Sending a keydown event via the Chromium dev console
also works.
Attached is a minimal reproduction of the Wealthsimple input box for testing &
reproduction convenience.
STEPS TO REPRODUCE
1. Enable Plasma Keyboard in KDE Virtual Keyboard.
2. Open the reproduction html in Chrome or Brave or similar Chromium browser.
3. Attempt to type numbers into a share or money field.
4. Observe that nothing happens.
5. Change Virtual Keyboard to None.
6. Observe that the field now works and numbers can be typed.
7. Change Virtual Keyboard back to Plasma Keyboard.
8. Observe that the field still works.
9. Refresh the page.
10. Observe that the field no longer works.
OBSERVED RESULT
Input field does not work.
There is no keydown or keyup event registered.
EXPECTED RESULT
Input field should work.
There shoudl be a keydown and keyup event registered.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Bazzite 44
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
ADDITIONAL INFORMATION
FULL AI DISCLOSURE: I used ChatGPT Codex to isolate the issue and produce the
minimal HTML reproduction. I personally reproduced and verified the behaviour
found here.
--
You are receiving this mail because:
You are watching all bug changes.