Skip to content

ps2d: alt_gr, vesad: keymaps.

Jeremy Soller requested to merge Ploppz:key_event_change into master

Created by: Ploppz

This all builds on changes that are now in a PR in orbclient: https://github.com/redox-os/orbclient/pull/30.

ps2d:

  • Add alt_gr key support, merged from @meven's fork
  • Convert from scancodes to keycodes
  • Keep track of modifier keys, which is included KeyEvent

This also makes Orbital able to distinguish between alt and alt-gr.

vesad:

  • Implement keymaps; a mapping from keycode to character
  • You can write to display:keymap to change keymaps (stored in files)

There is a problem with some characters (that the keymap yields) in the terminal: Shift+4 on a Norwegian keymap writes '¤', but that seems to hang the terminal (in Redox) for a bit, and not write anything. Same for other special characters such as '£', '«' (from BEPO) etc. Not sure at the moment where the fault is.

I didn't remove keymaps from ps2d but I expect that this should be done sooner or later.

Edited by Ribbon

Merge request reports