linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.53k stars 735 forks source link

Accessibility: release sticky keys with a key #11629

Open damianoognissanti opened 1 year ago

damianoognissanti commented 1 year ago

Is your feature request related to a problem? Please describe.

Sometimes when I use sticky keys it happens that I forget which keys are locked (and sometimes I accidentally touch a button next to the one I wanted to press). Since the keyboard doesn't show which keys are locked, I have had to test the keys in order to see which combination release the lock (sometimes even the mouse click stops working since some combination of keys are locked).

Describe the solution you'd like

A setting in the accessibility menu where you select a key (e.g. Esc) that releases all sticky keys. Esc feels lika a natural default (yes, I like vim (when not using sticky keys)...).

Describe alternatives you've considered

I have made a custom keyboard shortcut that resets the lock by running

bash -c "dconf write /org/cinnamon/desktop/a11y/keyboard/stickykeys-enable false && dconf write /org/cinnamon/desktop/a11y/keyboard/stickykeys-enable true"

and have bound this command to

Additional context

Secret-chest commented 1 year ago

Makes sense. Is Super+esc used?

damianoognissanti commented 1 year ago

By default it isn't bound to anything.

I can just add that the reason I have such a long list of keybindings is because when pressing Esc while in "Sticky keys mode" some of the keys are already pressed, so even just pressing Esc can count as pressing Ctrl+Super+Esc. That is something to keep in mind when fixing this.

I hope there will be a possibility to just have a single key to release the Sticky keys since some use this feature because they can't hold and press buttons at the same time.

And please note that there is a "Sticky keys"-setting right now which says "Disable if two modifiers are pressed together", but the problem with that one is that it disables sticky keys altogether instead of just releasing them.