Commit 8800265a authored by Nico Mack's avatar Nico Mack

Fixed issue causing application not to respond to keyboard inputs

parent 13759178
......@@ -180,6 +180,14 @@ public class TangibleInterfaceManager extends JComponent {
public void windowClosing(@Nullable WindowEvent evt) {
System.exit(0);
}
@Override
public void windowOpened(@Nullable WindowEvent evt) {
if (evt != null) {
evt.getWindow().requestFocus();
}
}
});
frame.addKeyListener(new TuiKeyAdapter());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment