Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weston with WPEWebkit on Touchscreen fails to focus correct element #952

Open
Jefisovas opened this issue Oct 5, 2022 · 4 comments
Open

Comments

@Jefisovas
Copy link

Hi,
Having a bit of issue here when using Weston + WPEWebkit + Touch screen.
When editing text inputs with a touchscreen keyboard, after selecting next element,
webkit thinks it selected next one, but as soon as typing a letter on virtual keyboard,
the focus jumps backs to previous element, and adds new letter to that.

When selecting next input, webkit thinks it did select, as focus style changes, events are raised etc.
But input subsystem thinks it is still on same element.
The only workaround I've so far found is to use button "->" on virtual keyboard, it raises a Tab key click event,
and only then the focus jumps correctly.

Inspecting logs, I can see that focus enter element correctly:
[email protected]_input_panel()
But it never leaves.

Doing similar test to a weston-editor there are no issues there.
Focus enter correct control, and using virtual keyboard is working correctly.
As log contains these entries:
[email protected]()

Doesn't what I try to do in javascript, it fails exactly the same.
Focusing element manually etc etc.
Another point is that manually changed input value from the javascript, it totally fails virtual keyboard,
but that's another issue I guess.

Any tips?

Details:
weston 10.0.1
cog 0.10.1 (WPE WebKit 2.32.4)
[
js_deletes_element.log
weston_editor_touch_next_input.log
touch_next_element.log
](url)

@cashew22
Copy link

Hi @Jefisovas, I have the exact same behavior as you in the same setup with a touchscreen and Weston. Did you find something ? I'm currently trying to understand what is going on.

I think this is the same issue:
https://github.com/Igalia/cog/issues/413

@micdini
Copy link

micdini commented Feb 18, 2024

Still same issue with:

WPE Webkit 2.42.5
Cog 0.18.2
Weston 10.0

Other than Tab, also pressing Enter on virtual keyboard works as it moves the focus on next element.

@philn
Copy link

philn commented Feb 22, 2024

Are you sure you're using this downstream WPE fork? The upstream is hosted at wpewebkit.org (releases) and github.com/webkit/webkit (repo).

@micdini
Copy link

micdini commented Feb 22, 2024

You're right, I'm building the upstream version from meta-webkit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants