Accelerators - odd behavior

Scott Palmer swpalmer at gmail.com
Fri Sep 26 23:44:00 UTC 2014


I must correct that,  KeyCharacterCombination("+",
KeyCombination.CONTROL_DOWN)  is the same as  KeyCharacterCombination("=",
KeyCombination.CONTROL_DOWN)  (on a US keyboard).  It only works if you
*don't* also press shift to get the "+" character.

On Fri, Sep 26, 2014 at 6:58 PM, Scott Palmer <swpalmer at gmail.com> wrote:

> 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