tsm: vte: use ASCII keysyms for ctrl+<XY> shortcuts
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 9 Oct 2012 10:26:07 +0000 (12:26 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 9 Oct 2012 10:30:40 +0000 (12:30 +0200)
commit33ebc01441f9d4f8a7983aef8694651b42e043c6
tree9b878137b02a52ab0744061e31c88d492ce793d1
parent0a03785ffc4811979fd8a6e4f62bd02eee5656b6
tsm: vte: use ASCII keysyms for ctrl+<XY> shortcuts

If a user has multiple active XKB layouts but only one of them has ASCII
keysyms on the base level, then ctrl+<XY> might actually never work,
because these keys aren't available in the current layout. This patch
tries to find a layout of the user that actually _has_ ascii keysyms on
the base level and passes this information along with the normal keysym
information.

The TSM layer can now use this ascii keysym instead of the normal unicode
keysym to handle ctrl+<XY> shortcuts. This is the same way xterm et. al.
handle this, so it seems to be a good idea to do this in TSM, too.

Reported (and mainly written) by Ran Benita.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/shl_misc.h
src/terminal.c
src/tsm_vte.c
src/tsm_vte.h
src/uterm.h
src/uterm_input_uxkb.c
src/wlt_terminal.c
src/wlt_theme.c
src/wlt_toolkit.c
src/wlt_toolkit.h