Commit 267bfd3
committed
Fix keyPressed for multiple keys
Java2D and FX2D send multiple PRESSED and only one RELEASE event (at
least on Windows). Therefore we have to keep track of what is pressed
and what not. Most keyboards do not support pressing more than ~10 keys
simultaneously, so this should not cause any performance problems.
Fixes #50491 parent f1b83c3 commit 267bfd3
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| |||
2935 | 2935 | | |
2936 | 2936 | | |
2937 | 2937 | | |
2938 | | - | |
| 2938 | + | |
| 2939 | + | |
2939 | 2940 | | |
2940 | 2941 | | |
2941 | 2942 | | |
2942 | 2943 | | |
2943 | | - | |
2944 | | - | |
| 2944 | + | |
| 2945 | + | |
2945 | 2946 | | |
2946 | 2947 | | |
2947 | 2948 | | |
| |||
3123 | 3124 | | |
3124 | 3125 | | |
3125 | 3126 | | |
3126 | | - | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
3127 | 3131 | | |
3128 | 3132 | | |
3129 | 3133 | | |
| |||
0 commit comments