mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix Escape in dialogs, etc
This commit is contained in:
@@ -255,7 +255,7 @@ public abstract class MouseDragHelper implements MouseListener, MouseMotionListe
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE && e.getID() == KeyEvent.KEY_PRESSED) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ESCAPE && e.getID() == KeyEvent.KEY_PRESSED && myDraggingNow) {
|
||||
myCancelled = true;
|
||||
if (myDetachingMode) {
|
||||
processDragOutCancel();
|
||||
|
||||
Reference in New Issue
Block a user