|
|
|
|
Re: Influence Focus as it was possible with setFocusTraversalPolicy and DefaultKeyboardFocusManager [message #1842891 is a reply to message #1842798] |
Mon, 05 July 2021 11:50 |
Michael Frank Messages: 13 Registered: February 2021 |
Junior Member |
|
|
EDIT:
So I tried setting this up with a filter on Display. I used Display.getDefault() as well as injectiong the Display. This triggers the listener when I'm not in a (Popup)Dialog of some sorts. As soon as I'm in a Dialog created e.g. like this
KorrekturDialog dialog = ContextInjectionFactory.make(KorrekturDialog.class, context);
my listener doesn't trigger anymore, instead the Dialogs Default Action gets triggered. This can be prevented by passing false for all buttons in createButton like
createButton(parent, IDialogConstants.OK_ID, messages.button_speichern, false);
Also, any idea on how to trigger a focus change from a Listener? So far the only way I found is to specificially put the focus on a component using setFocus and forceFocus but as there is no "focusNextComponent" I'm not sure how to tackle this.
[Updated on: Mon, 05 July 2021 15:00] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03318 seconds