Replies: 1 comment 1 reply
-
|
Could it be that you're looking for a way to capture key events before they reach the line-edit to then act on them? See also https://docs.slint.dev/latest/docs/slint/reference/keyboard-input/focusscope/#key-event-delivery Perhaps you'll want to let the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Description
It would be great to be able to forward key events to other elements.
The following demo simulates an application where we have a list which takes the majority of the space in the page and a text input field to filter the elements in the list.
It would be convenient to be able to filter the lines in the list by typing in the whole page, not only in the dedicated LineEdit.
Demo:
A the moment it's possible to manually focus the destination, but such a focus becomes effective only after the event has been discarded, so a character gets lost (Example 1).
Example 2 manually edits
filter's text, but doing so the LineEdit cannot react to special keys, such as backspace.Having a
forward_key_eventmethod on TextInput-related components (or maybe on every component) would solve the issue and would make it possible to build interfaces fully controlled by keyboard.Product Impact
Beta Was this translation helpful? Give feedback.
All reactions