Page 1 of 1

Event for whole workscreen

PostPosted: Thu Nov 08, 2018 11:48 am
by JuFi
Hi!
I want to create a key pressed event which works for the whole workscreen (so, for all components in this workscreen). Is there a possibility to create something like a "global event" or do I have to add an event listener to every component?

Thanks in advance.

Re: Event for whole workscreen

PostPosted: Thu Nov 08, 2018 1:41 pm
by Support@SIB
What's the use-case?

The problem with global hotkeys is that they are not supported in all technologies (web/desktop/mobile), and if you have a MDI application (multiple windows), it's not clear which window should get the notification.

It's possible to set hotkeys for buttons or menuitems.

Re: Event for whole workscreen

PostPosted: Thu Nov 08, 2018 2:31 pm
by JuFi
I wanted to open a dialog which is only accessible from a specific workscreen. So my shortcut should also only work on this specific workscreen and not in the whole application.

Re: Event for whole workscreen

PostPosted: Thu Nov 08, 2018 2:58 pm
by Support@SIB
But what should happen if you have different screens open and the same shortcut for different actions?

It should work if you add a button to your screen with a shortcut (e.g. in the NavigationTable). This button could be used as shortcut receiver and as hint for the user because it can click without knowing the shortcut.