> **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: add Linux bug ID 8321303 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26790/files - new: https://git.openjdk.org/jdk/pull/26790/files/b9d27e8f..edfc0805 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26790&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26790&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/26790.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26790/head:pull/26790 PR: https://git.openjdk.org/jdk/pull/26790