13.11.2014, 18:26
I'd prefer this too, but all key strokes are defined within resource bundles next to their mnemonics, icons and localization texts. Search RouteConverter.properties for
open-action=Open...
open-action-mnemonic=O
open-action-keystroke=ctrl O
open-action-icon=slash/navigation/converter/gui/open-action.png
to understand the pattern. So I was searching for a way to combine this definition of actions with Tookit.getMenuShortcutKeyMask() - but the only examples that Google spills out are these very simple one liners.
open-action=Open...
open-action-mnemonic=O
open-action-keystroke=ctrl O
open-action-icon=slash/navigation/converter/gui/open-action.png
to understand the pattern. So I was searching for a way to combine this definition of actions with Tookit.getMenuShortcutKeyMask() - but the only examples that Google spills out are these very simple one liners.
--
Christian
Christian
