Custom Widget react on "ESC" Key
Posted: Fri Oct 22, 2021 3:10 am
Hi,
we have created a widget which we use as the topbar in our screens. Now we want to react when the user presses the "ESC"-Key and run code which is in the widget.
I can attach to the keyevent but it seems that the ESC and all the F-keys are catched by pui and is not bubbled up to my event listener.
Is there a way, how we can register to these keypresses too?
Thanks,
Michael
we have created a widget which we use as the topbar in our screens. Now we want to react when the user presses the "ESC"-Key and run code which is in the widget.
I can attach to the keyevent but it seems that the ESC and all the F-keys are catched by pui and is not bubbled up to my event listener.
Is there a way, how we can register to these keypresses too?
Thanks,
Michael