Commit 81d6f49
[Win32] Add PrtScr hotkey check for KeyEvent tests #2516
The Win32 KeyEvent tests started to fail on GitHub Actions when the
environment was updated to Windows Server 2025. Using the print screen
button opens the Windows snipping tools which, for yet unknown reason,
now receives the focus and does not close automatically when processing
further key events, like it did before and does on Windows 11 systems.
To keep the tests working properly, this change excludes the PtrScr key
as a system hotkey when not combined with any modifier key.
Fixes #2516
Co-authored-by: Jonah Graham <jonah@kichwacoders.com>1 parent 65b962b commit 81d6f49
File tree
2 files changed
+5
-3
lines changed- tests/org.eclipse.swt.tests.win32
- JUnit Tests/org/eclipse/swt/tests/win32
- META-INF
2 files changed
+5
-3
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
0 commit comments