RFR: 8361606 : ConsumeNextMnemonicKeyTypedTest.java fails on Windows: character typed with VK_A: a [v4]
duke
duke at openjdk.org
Tue Sep 30 13:49:01 UTC 2025
On Thu, 25 Sep 2025 17:23:54 GMT, Anass Baya <abaya at openjdk.org> wrote:
>> **Analysis :**
>> When the problem occurrs, the key press event related to the mnemonic triggers the item selection. However, as we returned to the menu, the subsequent key typed event arrived and was treated as a normal key press instead of being recognized as part of the mnemonic sequence.
>>
>> **Proposed Fix:**
>> As a fix, we are tagging the next key typed event to be consumed by the Keyboard Focus Manager
>>
>>
>> public void processKeyEvent(Component focusedComponent, KeyEvent e) {
>> // consume processed event if needed
>> if (consumeProcessedKeyEvent(e)) { <--- consumed here
>> return;
>> }
>> ...
>
> Anass Baya has updated the pull request incrementally with one additional commit since the last revision:
>
> Update Copyright year
@anass-baya
Your change (at version 576b43a7afb791bc6d869c2a412ea97988faef05) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26790#issuecomment-3352257076
More information about the client-libs-dev
mailing list