Inconsitentcies with XModMap

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
JustAPerson
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Nov 22, 2018 6:43 am
Contact:

Inconsitentcies with XModMap

Post by JustAPerson »

Hi,

I'm using Factorio 0.17.59 on Ubuntu 18.04 with AwesomWM instead of GNOME. I use XModMap to switch control and capslocks, and some other modifiers on my laptop for ergonomics.
Here is my `~/.Xmodmap` file:

Code: Select all

clear      lock 
clear   control
clear      mod1
clear      mod2
clear      mod3
clear      mod4
clear      mod5
keycode      66 = Control_L
keycode      64 = Super_L
keycode     133 = Alt_L
add     control = Control_L Control_R
add        mod1 = Alt_L Alt_R Meta_L
add        mod2 = Num_Lock
add        mod3 = Hyper_L
add        mod4 = Super_L Super_R
add        mod5 = Mode_switch ISO_Level3_Shift
The line `keycode 66 = Control_L` specifies that capslock should be treated as the left control key. Factorio does not respect this consistently.

When I press what is notionally the left control (physically the capslock key),it is ignored by the game keybindings, so inventory transfers etc are not working as expected. However, if I type in the chatbox and press control-backspace, a whole word is deleted as would be expected. So it appears the modifiers are respected in some cases and not in others.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15476
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Inconsitentcies with XModMap

Post by Rseding91 »

I believe that's working as intended. Factorio pays attention to the physical key being pressed and not what the key is mapped to.
If you want to get ahold of me I'm almost always on Discord.
posila
Former Staff
Former Staff
Posts: 5447
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Inconsitentcies with XModMap

Post by posila »

In-game input handling assumes there is one left control and one right control, if there are multiple keys mapped to the same modifier key, only one of them will be recognized as a modifier.

65093#p423382
JustAPerson
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Nov 22, 2018 6:43 am
Contact:

Re: Inconsitentcies with XModMap

Post by JustAPerson »

Posila was correct. Altering my map such that there was only 1 key mapped to left control fixed the problem.
Post Reply

Return to “Minor issues”