Changeset 13287 in josm


Ignore:
Timestamp:
2018-01-07T02:21:07+01:00 (2 weeks ago)
Author:
Don-vip
Message:

fix #15716 - listen to escape key outside of imagery adjust dialog, and restore correct offset when pressing it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r13269 r13287  
    152152        case KeyEvent.VK_LEFT : dx = -1; break;
    153153        case KeyEvent.VK_RIGHT : dx = +1; break;
     154        case KeyEvent.VK_ESCAPE:
     155            if (offsetDialog != null) {
     156                offsetDialog.setVisible(false);
     157                return;
     158            }
     159            break;
    154160        default: // Do nothing
    155161        }
     
    325331            if (visible)
    326332                return;
     333            ignoreListener = true;
    327334            offsetDialog = null;
    328335            if (layer != null) {
Note: See TracChangeset for help on using the changeset viewer.