On Thu, 19 Aug 2021 17:10:27 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> As an experiment, is it possible to log the current state of modifier keys, > i.e. Shift, Control, Alt, before the key events are sent to edited table > cell? This would confirm our guess whether Shift key is left pressed by a > test which ran before. It seems Toolkit.getLockingKetState() can only be called for CAPS_LOCK, NUM_LOCK, SCROLL_LOCK etc and not for modifiers. So, modifier keys can only be obtained from InputEvent. I used my own event listener inside the MultiResolutionSplashTest to get shift key via isSHiftDown() and run whole java_awt test in CI and it is shown to be "false" in that test so it seems no shift key is pressed at least for this run. ---------configuration:(4/107)---------- Boot Layer add modules: java.desktop add exports: java.desktop/sun.java2d ALL-UNNAMED ----------System.out:(3/102)---------- VK_CAPS_LOCK key state: false VK_SHIFT pressed key state: false VK_SHIFT released key state: false ----------System.err:(1/16)---------- STATUS:Passed. ----------rerun:(48/5388)*---------- Maybe someother thing or some other timing issues happened the time these test fails. ------------- PR: https://git.openjdk.java.net/jdk/pull/5079