Page 1 of 1

[1.1.76] Mac + AZERTY: undo closes game

Posted: Thu Mar 16, 2023 11:20 am
by Dari
What did you do?
During gameplay (macOS Big Sur 11.7.4 on Intel processor, game version 1.1.76, build 60350, mac-x64, default languageā€”note this behavior is present since a few months, but I am not sure when precisely), perform any cancellable action (e.g. stamping a blueprint), hit the default "undo" shortcut (which should be "cmd+z", but is actually "cmd+w", and the game closes instantly, without warning or saving.
What happened?
The game closed, and I lost my actions since the last (auto)save.
What did you expect to happen instead? It might be obvious to you, but do it anyway!
My action gets cancelled, and the game does not quit. If the games has to quit for any reason, ask me to save first!
Does it happen always, once, or sometimes?
It always happen.

Re: [1.1.76] Mac + AZERTY: undo closes game

Posted: Thu Mar 16, 2023 12:31 pm
by Koub
Actually, this looks more like a suggestion for a suboptimal design, rather than a bug.
[Koub] Moving this to Ideas and suggestions for now.

Can't reproduce anything similar with my Windows PC, the default shortcut for undo undoes without quitting. Must be a Mac thing.

Re: [1.1.76] Mac + AZERTY: undo closes game

Posted: Thu Mar 16, 2023 1:22 pm
by posila
Implemented for 1.1.78
There are special default valus for AZERTY keyboards, as Z is move up and on PC with QWERTY layout the undo defaults to Ctrl + Z, which is reasonable combination of keys to press during normal gameplay (move up & ctrl + click things to transfer stacks of items). So, default shortcut for Undo is Ctrl + W when AZERTY layout is detected, to prevent accidental undos. Since on macOS Cmd + W is OS shortcut to close the front window and Cmd + Z doesn't seem to collide with the normal gameplay, I disabled this special AZERTY behavior on macOS builds.

Re: [1.1.76] Mac + AZERTY: undo closes game

Posted: Thu Mar 16, 2023 5:14 pm
by Dari
Thanks, you guys are awesome :)