[0.16.50] AltGr keybinding acting totally weird
Posted: Fri Jun 15, 2018 1:18 pm
When I change a control to the AltGr key it only works if I press AltGr and then Ctrl or Alt in that order or if I press Alt and then Ctrl.
www.factorio.com
https://forums.factorio.com/
German keyboard layout Windows 10 and Ctrl + Alt should equal AltGr and not some weird combining of both.mexmer wrote:What keyboard layout you use, some keyboard layouts treat altgrvdifferent 2ay (like prefix key), some make no difference between alt and altgr.
Also your os, and (if it’s linux), your window manager
Code: Select all
VK SC Type Up/Dn Elapsed Key
-----------------------------------
#AltGr+R
A2 01D d 0.56 LControl
A5 138 d 0.02 RAlt
52 013 d 0.09 R
52 013 u 0.16 R
A2 01D u 0.06 LControl
A5 138 u 0.00 RAlt
#LControl+LAlt+R
A2 01D d 0.44 LControl
A4 038 # d 0.05 LAlt
52 013 d 0.38 R
A2 01D u 0.19 LControl
A4 038 u 0.00 LAlt
52 013 u 0.00 R
Sounds plausable. The game makes no distinction between enter and numpad enter either because they're not useful distinctions to the game. I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).eradicator wrote:The keyboard has a seperate RControl, but no seperate RAlt key. If i assign the above to reverse-rotate it works fine in-game, but pressing LControl+LAlt+R (or RControl+LAlt+R) does too, so the game makes no differece between R/L variants?
I don't think i've ever seen one without :D. Not inside of Germany anyway. (Due to that my muscle memory considers them inheritely different. I think shift is the only key i consider "the same" for R/L, but even RCtrl i don't consider "the same" as LCtrl and would thus never try to substitude one for the other when typing.)Rseding91 wrote:I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).
I wonder how other games handle that. My perception is too biased to tell if anyone would be bothered by RCtrl/RAlt being "different" keys.Rseding91 wrote: Possibly the only way to make this work for everyone is to add some option to make the game treat left/right variants of keys as distinct. First we would have to go through the code base and make sure everything that wanted to listen to "alt" listened to both or a specific one if it meant a specific one.
Most things I know even treat all numpad keys and both mirrored keys differently. I would suggest to differentiate all keys from one another.Rseding91 wrote:Sounds plausable. The game makes no distinction between enter and numpad enter either because they're not useful distinctions to the game. I've personally never seen a keyboard with "AltGr" (all of my US keyboards just say "Alt" on both alt keys).eradicator wrote:The keyboard has a seperate RControl, but no seperate RAlt key. If i assign the above to reverse-rotate it works fine in-game, but pressing LControl+LAlt+R (or RControl+LAlt+R) does too, so the game makes no differece between R/L variants?
Possibly the only way to make this work for everyone is to add some option to make the game treat left/right variants of keys as distinct. First we would have to go through the code base and make sure everything that wanted to listen to "alt" listened to both or a specific one if it meant a specific one.