From 56285b4b4457cffd087d5c4c90d3963529c19f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 17 Dec 2022 12:42:34 +0100 Subject: [PATCH] Default cursor for alt+click --- src/com/jpexs/decompiler/flash/gui/ImagePanel.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index e50791de6..83fc0bdf2 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -654,6 +654,11 @@ public final class ImagePanel extends JPanel implements MediaDisplay { private boolean altDown = false; + public boolean isAltDown() { + return altDown; + } + + public IconPanel() { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); @@ -2614,7 +2619,9 @@ public final class ImagePanel extends JPanel implements MediaDisplay { } if (freeTransformDepth == -1) { Cursor newCursor; - if (handCursor) { + if (iconPanel.isAltDown()) { + newCursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR); + } else if (handCursor) { newCursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR); } else if (iconPanel.hasAllowMove()) { newCursor = Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR);