i couldn't find a way to programmatically set the focus on the workarea after clicking the submodule node in the navigatin area. in other words: i need the behaviour of the Riena Keyboard Navigation "Focus on Workarea - F7", but automatically.
Is it possible to set the focus to a certain ridget afterwards, instead of only the first ridget in the ui? I also couldn't set the default button with setDefaultButton(IActionRidget).
the F7 shortcut or clicking in the navigation just invokes the view's #setFocus() method (i.e. same as in RCP). If you want to change the behavior just overwrite it and focus somewhere else. Try this:
public void setFocus() {
if (canRestoreFocus()) {
super.setFocus();
} else {
// your stuff
}
}
Regarding setDefaultButton(): please post more details and the version of Riena you are using. A snippet would be best.
Kind regards,
Elias.
--
Elias Volanakis | http://eclipsesource.com
elias (AT) eclipsesource.com | @evolanakis
Hi Elias,
thanks for the solution.
meanwhile i migrated to Riena 2.0.0 M3. i much appreciate the changes, setting default button for each widget is a great thing.