In my operating system configuration I swapped the control and caps-lock keys on my keyboard. This makes my keyboard much more comfortable. Everything was great in 0.16, but presumably due to the change described in FFF #259 Factorio is now ignoring this. My guess is that it's looking at the scan codes and trying to guess which ones correspond to control and caps-lock, rather than looking at the key codes, which are what I want.
I would be perfectly happy to go into the "Controls settings" page and sort this out myself, mapping "Inventory transfer" to "CAPS LOCK + Left mouse button" and so on, but Factorio doesn't recognize caps-lock as a valid modifier key, so I can't even fix it that way.
I see two possible ways to solve this (there may be others I'm not thinking of):
1. Allow a configuration option to use the old key-code behavior rather than the new scan-code behavior.
2. Allow caps-lock to be a valid modifier key, thereby letting me fix this myself in the "Controls settings" page.
I'm running Arch Linux, updated today. I performed the swap with:
setxkbmap -option 'ctrl:swapcaps'
If you're testing on linux you can use that command to temporarily perform the swap in the same way I did. Your keyboard will go back to normal when you reboot, or when you run:
setxkbmap -option
[0.17.1] Scan code change causes OS-level control/caps-lock swap to be ignored
-
- Manual Inserter
- Posts: 4
- Joined: Wed Feb 27, 2019 5:02 am
- Contact:
-
- Manual Inserter
- Posts: 4
- Joined: Wed Feb 27, 2019 5:02 am
- Contact:
Re: [0.17.1] Scan code change causes OS-level control/caps-lock swap to be ignored
This looks closely related: viewtopic.php?f=7&t=65381
Re: [0.17.1] Scan code change causes OS-level control/caps-lock swap to be ignored
Thanks for the report.
Moving to duplicates. See also 65881
Moving to duplicates. See also 65881