uterm: input: fix stopping key-repeats on key-up
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 22:30:58 +0000 (00:30 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 22:30:58 +0000 (00:30 +0200)
commitb9b05283bf34f67ee7f3b1aa671a2d657661715d
treea73eaa57aef142e144d55b7b62f0cc7bab2caf2a
parentcc02876d6c8af831651b9d85ba3f592d01a1efab
uterm: input: fix stopping key-repeats on key-up

A key-repeat is about keycodes, not keysyms. We repeat the keycode and the
events that are generated by it, so we must also stop repeating if the
given keycode is released.

This fixes a bug where a key would still be repeated if we press:
<a-down> - <Shift-down> - <a-up> - <Shift-up>

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