Ask Your Question

Sticky keys, how to make pressing the shift key twice let go of the key?

asked 2018-12-10 23:04:02 -0500

incantator gravatar image

updated 2018-12-11 01:50:16 -0500

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-15 20:17:58 -0500

ed209 gravatar image

In gnome it works as expected. Have you tried accessibility settings in gnome?

edit flag offensive delete link more


I'm using KDE. The .Xmodmap works just fine, but in KDE there is no setting for pressing twice to let go of the already pressed modified key.

incantator gravatar imageincantator ( 2018-12-16 18:17:44 -0500 )edit

Question Tools

1 follower


Asked: 2018-12-10 23:04:02 -0500

Seen: 89 times

Last updated: Dec 15 '18