Bug 224736 - [GTK] GTK3 is not emitting keypress events
Summary: [GTK] GTK3 is not emitting keypress events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-18 18:05 PDT by Lauro Moura
Modified: 2021-04-27 07:03 PDT (History)
2 users (show)

See Also:


Attachments
Test case (1.80 KB, text/html)
2021-04-18 18:07 PDT, Lauro Moura
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2021-04-18 18:05:41 PDT
WebDriver test:

imported/selenium/py/test/selenium/webdriver/common/typing_tests.py::testShouldFireKeyPressEvents

While keypress layout test works (IIRC, the events go through event sender), some WebDriver tests fail with keypress failing to be emitted. This does not seems to be webdriver specific, as the attached test fails to send them in GTK3 MiniBrowser (works in WPE/GTK4 MiniBrowser).

The only key answering to keypress was `enter`.

With Epiphany 3.38.1 / WebKitGTK 2.30.6 works fine.
Comment 1 Lauro Moura 2021-04-18 18:07:55 PDT
Created attachment 426391 [details]
Test case

Test case based on special-key-events-in-input-text.html
Comment 2 Carlos Garcia Campos 2021-04-27 07:03:09 PDT
I can't reproduce in MiniBrowser. But WebDriver events are synthesized, so it should be the same in gtk3 and gtk4.