[TextEdit / LineEdit] Add support for OEM Alt codes input.

This commit is contained in:
bruvzg 2024-06-22 15:16:11 +03:00 committed by Pāvels Nadtočajevs
parent c374ce211c
commit aa0ade5b49
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
7 changed files with 257 additions and 25 deletions

View file

@ -288,6 +288,14 @@ private:
Text text;
bool setting_text = false;
enum AltInputMode {
ALT_INPUT_NONE,
ALT_INPUT_UNICODE,
ALT_INPUT_OEM,
ALT_INPUT_WIN,
};
AltInputMode alt_mode = ALT_INPUT_NONE;
bool alt_start = false;
bool alt_start_no_hold = false;
uint32_t alt_code = 0;