#10104 closed enhancement (fixed)
Use single AWTEventListener for key press/release and alt/shift/ctrl detection
Reported by: | akks | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.06 |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
In #7991 and #3910 there was mentioned a problem: sometimes we need to detect repeated key press or release but do not want to receive events then key is hold. There are some workarounds using AWTEventListener that allow it but this should be synchronized and not copy-pasted to all mapmodes and plugins.
AWTEventListener was also widely used to detect changing of CTRL/ALT/SHIFT modifier keys.
The proposed change is to unify all this "advanced" key handling in separate class AdvancedKeyPressDetector
and make it avalable as Main.map.keyDetector
.
Attachments (0)
Change History (10)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
It would be very good if someone can check that the behavior did not change on Linux and Mac .
(cursor changing on Alt-Shift-Ctrl could be affected for all modes and repeating&holding X and A)
Code improvements are also welcome.
comment:5 by , 10 years ago
Summary: | Use single AWTEventListener for key press/relese and alt/shift/ctrl detection → Use single AWTEventListener for key press/release and alt/shift/ctrl detection |
---|
comment:7 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 7217/josm: