Accelerators - odd behavior

Scott Palmer swpalmer at gmail.com
Fri Sep 26 22:58:56 UTC 2014


While looking into this I noticed that KeyCharacterCombination("+",
KeyCombination.CONTROL_DOWN)  doesn't work for either the PLUS (shifted
EQUALS), or ADD (numeric keypad "+").

Only KeyCodeCombintation(KeyCode.EQUALS, KeyCombination.CONTROL_DOWN,
KeyCombination.SHIFT_DOWN)
was working.

On Fri, Sep 26, 2014 at 3:11 PM, Tomas Mikula <tomas.mikula at gmail.com>
wrote:

> > That doesn't explain why this isn't happening for PLUS.
>
> KeyCodeCombination(KeyCode.PLUS, KeyCombination.CONTROL_DOWN)
>
> is never matched. It might even be impossible to get a KEY_PRESSED
> event with key code PLUS with English keyboard layout. When I switch
> keyboard layout to Slovak, which has the '+' sign accessible without
> Shift, I do get the runnable fired twice.
>
> Best,
> Tomas
>


More information about the openjfx-dev mailing list