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:
hneemann 2016-05-05 09:23:06 +02:00
parent b5a152d83a
commit c0240c07c0

View File

@ -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);
}