uterm: input: fix key-repeat handling
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 23:22:47 +0000 (01:22 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 23:22:47 +0000 (01:22 +0200)
commitd904eb929a598568c4118ac2bcd2783bad4154a7
tree299c155059f6adfd3d933908a5821953f2a6d9cc
parentb9b05283bf34f67ee7f3b1aa671a2d657661715d
uterm: input: fix key-repeat handling

We currently do not handle modifier-changes during key-repeats. This is
odd as pressing shift should change a repeating key.

To avoid duplicating a lot of code, this patch puts most of the
key-handling into helper functions and cleans it up. We now handle all
kinds of key-repeat specialties and everything should work fine.

Reported-by: Ran Benity <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_input.h
src/uterm_input_uxkb.c