Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
HammerGS committed May 21, 2024
2 parents dfea723 + 51c25e7 commit 8862fb6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MekHQ/src/mekhq/GameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import megamek.client.bot.BotClient;
import megamek.client.bot.princess.Princess;
import megamek.client.ui.swing.ClientGUI;
import megamek.client.ui.swing.MegaMekGUI;
import megamek.client.ui.swing.util.MegaMekController;
import megamek.common.*;
import megamek.common.planetaryconditions.PlanetaryConditions;
Expand Down Expand Up @@ -341,10 +342,8 @@ public void quit() {
}

public void createController() {
controller = new MegaMekController();
KeyboardFocusManager kbfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
kbfm.addKeyEventDispatcher(controller);

KeyBindParser.parseKeyBindings(controller);
MegaMekGUI megaMekGUI = new MegaMekGUI();
megaMekGUI.createController();
controller = MegaMekGUI.getKeyDispatcher();
}
}

0 comments on commit 8862fb6

Please sign in to comment.