Changeset 7633 in josm for trunk/src


Ignore:
Timestamp:
2014-10-19T09:47:24+02:00 (5 years ago)
Author:
akks
Message:

see #10647: completely disable Main.map.keyDetector events while not in main window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java

    r7609 r7633  
    8888                if (set.remove(releaseEvent.getKeyCode()) && enabled) {
    8989                    synchronized (AdvancedKeyPressDetector.this) {
    90                         for (KeyPressReleaseListener q: keyListeners) {
    91                             q.doKeyReleased(releaseEvent);
     90                        if (isFocusInMainWindow()) {
     91                            for (KeyPressReleaseListener q: keyListeners) {
     92                                q.doKeyReleased(releaseEvent);
     93                            }
    9294                        }
    9395                    }
Note: See TracChangeset for help on using the changeset viewer.