mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 17:04:42 -04:00
If focus is lost the delete key is not working.
So now focus is requested every time the mouse is pressed in the main panel.
This commit is contained in:
parent
b5a152d83a
commit
c0240c07c0
@ -330,6 +330,7 @@ public class CircuitComponent extends JComponent {
|
||||
public void mousePressed(MouseEvent e) {
|
||||
pos = new Vector(e.getX(), e.getY());
|
||||
isMoved = false;
|
||||
requestFocusInWindow();
|
||||
activeMouseController.pressed(e);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user