New WS message control/keyboard, that changes keyboard.
Keyboard is changed only if user is hosting session, and when:
User changes language manually in select.
SetHost is changed - User requests control, or gets control. Meaning, that Layout is independend for each user since it always changes immediately after users has control.
For basic keys it should work independently of chosen keyboard, but to get full support, keyboard needs to be changed.
Could be improved:
Loading languages is from static file at frontend. Though, all available layouts can be found here: /usr/share/X11/xkb/rules/base.xml. It would be neat, to make XML parser and feed those data dynamically.
Use Guacamole as keyboard module and change keyboard layout.
Changes made:
KeySyms
are now directly sent to server inuint64
.KeyboardEvent
to X11'sKeySym
.KeySyms
that don't exist asKeyCodes
are mapped. https://github.com/nurdism/neko/commit/8a56f238add4dc4e241704905d743efb52597406#diff-91b69ff1cad0a2b44df2125d28965633R104-R113control/keyboard
, that changes keyboard.For basic keys it should work independently of chosen keyboard, but to get full support, keyboard needs to be changed.
Could be improved:
/usr/share/X11/xkb/rules/base.xml
. It would be neat, to make XML parser and feed those data dynamically.Fixes #72.