Skip to content

OSK: add escape key instead of caps-lock to extended (terminal) layout

Esokrates requested to merge esokrarkose/gnome-shell:main into main

Currently the terminal layout lacks an escape key which creates accessibility problems for terminals (e.g. in vim edit mode needs the escape key to get back into navigation mode).

This MR swaps the current Tab key with an Esc key and replaces the caps-lock key with Tab. My reasons for this are:

  1. Make minimal changes to the current layout, especially stay within the space constraints
  2. The caps-lock key is redundant, since the caps-lock can be triggered by long pressing the regular shift key anyway

I think loosing caps-lock is a good compromise, since it is redundant accessibility wise and the time lost from long pressing the shift keys is negligible on a onscreen-keyboard where you can't touch-type fast anyway.

Implicitly I made a design decision here: replace the "Tab" string with an icon. The reason for this is to keep the current geometry of all buttons. Since labels are centered in buttons, the "Tab" label would be centered as well, which would look inconsistent to the rest of the keyboard in my opinion. Since I'm no icon designer, I consider the icon I added only a temporary solution for this MR, I hope someone from the design team could provide some input here.

See the changes of this MR in action here:

Screencast_from_2022-11-21_22-26-11

@carlosg @aday

Merge request reports