chiark / gitweb /
terminal/idev: use compose tables
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 24 Nov 2014 17:25:30 +0000 (18:25 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 24 Nov 2014 17:30:03 +0000 (18:30 +0100)
commita2ce1730e12eda3112b3e84e0810f9913ce5c57c
treef1241c1700237ccc2506499c537454f291a5c16c
parentcdcd0ccdbe427de53d8e5ff8f2f1b06b3f477bde
terminal/idev: use compose tables

Before forwarding keyboard events, feed them into possible compose tables.
This enables Compose-key and Dead-key features.

Few notes:
 * REPEAT events are never fed into compose tables. It just doesn't make
   sense and is usually not wanted. Compose-sequences are usually hard to
   remember and take time to type. Thus, the REPEAT event of the
   Compose-key itself would often cancel the compose sequence already.

 * Stop resolving symbols for UP events. Anything but keycodes is never
   associated to a physical key, but is a one-time action. There is
   nothing like UP events for key-symbols!

 * Cancel compose-sequences on Multi-Key UP. See the inline comment. We
   should make this configurable!
src/libsystemd-terminal/idev-keyboard.c