Sticky keys, how to make pressing the shift key twice let go of the key?
Hello, I'm currently using Fedora KDE Spin, and I'm using the sticky keys using the accessibility setting. I want to emulate the Windows behaviour, i.e. pressing the modifier key twice let go of the key so that I can revert back to the beginning when I accidentally pressed one of the keys.
I think it can be done either via xorg.conf or xkbset/xmodmap, but I'm not sure how to do it or what is the best method for this. Here is my current .Xmodmap setting just for an example:
[---@localhost ~]$ cat .Xmodmap
! -*- coding: utf-8 -*-
! swap keys {BackSpace, Caps_Lock}
! Use xev to get keycode, keysym
clear control
remove Lock = Caps_Lock
keycode 66 = BackSpace NoSymbol BackSpace
keycode 22 = Caps_Lock NoSymbol Caps_Lock
keycode 105 = Menu NoSymbol Menu
keycode 135 = Control_R NoSymbol Control_R
add Lock = Caps_Lock
add control = Control_R Control_L
This simple config is to switch some keys.
Any help would be appreciated!