Fix automator hotkey

Fixes #653
This commit is contained in:
Andrei Andreev 2019-08-11 14:10:19 +03:00
parent 2808e5060e
commit a074a94c12

View File

@ -29,7 +29,14 @@ GameKeyboard.bindRepeatableHotkey("e", () => eternity());
GameKeyboard.bindHotkey("a", () => Autobuyers.toggle());
GameKeyboard.bindHotkey("b", () => BlackHoles.togglePause());
GameKeyboard.bindHotkey("u", () => automatorOnOff());
GameKeyboard.bindHotkey("u", () => {
if (AutomatorBackend.isRunning) {
AutomatorBackend.pause();
}
else if (AutomatorBackend.isOn) {
AutomatorBackend.mode = AutomatorMode.RUN;
}
});
GameKeyboard.bindHotkey("esc", () => {
if (Modal.isOpen) {