How can I capture key-pressed events while typing in LineEdit
?
#4063
Replies: 2 comments 4 replies
-
Are you saying that you can intercept the key-released but not the key-press? That's indeed a strange behavior, the TextInput (part of the LineEdit) should intercept both the same way. But that wouldn't help you. I wonder how we could make that work. |
Beta Was this translation helpful? Give feedback.
-
I have found this: #145 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The
LineEdit
will capture all related key-pressed event. But sometimes I need to handle some key-pressed events such as direction keys.For example, when entering the search content, press the arrow key to select the corresponding item:
2023-12-02.101553.mp4
I am currently implementing it with the key-released event. But that way, I can't implement the long press event, i. e., keep pressing the down key, and the selected item keeps moving down.
Is there any way to do that?
Beta Was this translation helpful? Give feedback.
All reactions