mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-12 22:36:02 -04:00
Fixed an issue with new focus gaining, see #308
This commit is contained in:
parent
9c1dd4961b
commit
44d3073af1
@ -1335,7 +1335,7 @@ public class CircuitComponent extends JComponent implements ChangedListener, Lib
|
||||
|
||||
@Override
|
||||
public void mousePressed(MouseEvent e) {
|
||||
hadFocusAtClick = hasFocus();
|
||||
hadFocusAtClick = SwingUtilities.getWindowAncestor(CircuitComponent.this).isFocused();
|
||||
pos = new Vector(e.getX(), e.getY());
|
||||
isMoved = false;
|
||||
requestFocusInWindow();
|
||||
|
Loading…
x
Reference in New Issue
Block a user