keyboard: Only generate keycodes from an allowlist

Some broken clients (most notably Chromium and its descendants)
try to interpret keymaps as if they were input sequences coming
from evdev. Workaround that by only using codes that directly
produce characters.

Fixes #244

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/598>
This commit is contained in:
Sebastian Krzyszkowiak
2022-08-20 08:47:00 +02:00
committed by MoonlightWave-12
parent dd612eabe6
commit f5aa1f3b19
3 changed files with 677 additions and 6 deletions

View File

@ -31,6 +31,7 @@ mod event_loop;
pub mod float_ord;
pub mod imservice;
mod keyboard;
pub mod keycodes;
mod layout;
mod locale;
mod main;