fly key capture lets shift, ctrl and alt through, so the play-here crosshair no longer sticks after flying fast
This commit is contained in:
1 parent
322e36c0f3
commit
64259ea15b
2 files changed
+9
-1
No files matched your search
@@ -110,7 +110,9 @@ public final class Viewport extends JPanel {
|
||||
} else if (e.getID() == KeyEvent.KEY_RELEASED) {
|
||||
keys.remove(e.getKeyCode());
|
||||
}
|
||||
return true;
|
||||
// modifiers pass on (others track Shift, e.g. the play-here crosshair); typed keys do not
|
||||
int k = e.getKeyCode();
|
||||
return k != KeyEvent.VK_SHIFT && k != KeyEvent.VK_CONTROL && k != KeyEvent.VK_ALT && k != KeyEvent.VK_META;
|
||||
};
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user