input: add new Unicode input mode

This mode is activated through the new key-bindings.unicode-input and
search-bindings.unicode-input key bindings.

When active, the user can “build” a Unicode codepoint by typing its
hexadecimal value.

Note that there’s no visual feedback in this mode. This is
intentional. This mode is intended to be a fallback for users that
don’t use an IME.

Closes #1116
This commit is contained in:
Daniel Eklöf 2022-07-28 18:09:16 +02:00
parent fa2d9f8699
commit 8967dd9cfe
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
11 changed files with 167 additions and 2 deletions

7
unicode-mode.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
#include "wayland.h"
void unicode_mode_activate(struct seat *seat);
void unicode_mode_deactivate(struct seat *seat);
void unicode_mode_updated(struct seat *seat);