SUMMARY Key configurations set with xmodmap resets when any usb device is plugged. STEPS TO REPRODUCE 1. Run xmodmap command. For example, the following command changes caps lock to shift. xmodmap -e "keycode 66 = Shift_L" 2. Press configured button, to test that remapping works. 3. Plug usb device such as mouse. 4. Press configured button, and that reconfiguration has disappeared. OBSERVED RESULT Xmodmap settings has reseted. EXPECTED RESULT Xmodmap settings would stay the same. SOFTWARE/OS VERSIONS Linux/KDE Plasma: kernel is 5.3.0-29-generic KDE Plasma Version: 5.17.5 KDE Frameworks Version: 5.66 Qt Version: 5.12.4 ADDITIONAL INFORMATION There is easy to work-around if key configurations are placed in ~/.Xmodmap. I have therefore no problems with this issue, but I reported it because that behaviour was not expected. This behaviour was not present in Kubuntu 18.04. (I'm noob, sorry if this issue is not kde related.)
This is not a KDE problem. Could be a kernel issue, or an xkb issue, or an xorg issue... But it's definitely below us.