Bug 224736

Summary: [GTK] GTK3 is not emitting keypress events
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, cgarcia
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case none

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.