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

Key events when keep pressing an arrow key #14

Open
WonyoungChoi opened this issue Jul 20, 2022 · 4 comments
Open

Key events when keep pressing an arrow key #14

WonyoungChoi opened this issue Jul 20, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@WonyoungChoi
Copy link

WonyoungChoi commented Jul 20, 2022

When keep pressing an arrow key (up, down, left, right) of keyboard, the key event seems to occur only once.

Repro

  1. In any TextField, type any characters
  2. Keep pressing an arrow key to move cursor continuously.
  3. But, the cursor moves single step.

Expected
The cursor should be moved continuously like typing any other characters.

This isn't limited to TextField, it happens in general, like moving a Widget's focus.

Environment

  • Device : RPI4
  • Platform: tizen-unified_20220713.2_tizen-headed-armv7l
  • Embedder: Latest
@swift-kim
Copy link
Member

I can't reproduce the problem. We're already taking repeated key events into account.

Which device did you use?

@WonyoungChoi
Copy link
Author

RPI4 34bit :(

@HakkyuKim
Copy link

Some keys (return, arrow keys, numbers, etc) do not constantly generate ECORE_EVENT_KEY_DOWN event.
https://github.com/flutter-tizen/engine/blob/06ddbce069b64d4e5471665eceb36292bb38cb8f/shell/platform/tizen/tizen_window_ecore_wl2.cc#L314-L336

Maybe there's an API that can change which keys should be keep generating ECORE_EVENT_KEY_DOWN events?

@swift-kim swift-kim added the bug Something isn't working label Sep 8, 2022
@HakkyuKim
Copy link

To share findings so far, ecore_wayland module listens a single keyboard press down event and determines if it should generate repeating ECORE_EVENT_KEY_DOWN events. The module determines this internally by calling xkb_keymap_key_repeats which returns whether the given key should be repeated or not (https://github.com/xkbcommon/libxkbcommon/blob/57af9cb71f19f37394399b549f7cb7b0d9fe3988/include/xkbcommon/xkbcommon.h#L1263-L1279).

@swift-kim swift-kim transferred this issue from flutter-tizen/engine Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants