url-mode: disable IME mode while URL-mode is active

This prevents the IME from stealing "our" key-presses, and thus
preventing the user from opening URLs.

Closes #1718, hopefully.
This commit is contained in:
Daniel Eklöf 2024-05-21 06:18:00 +02:00
parent 18b702b249
commit 8716ca5784
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 18 additions and 1 deletions

View file

@ -714,6 +714,7 @@ struct terminal {
char32_t url_keys[5];
bool urls_show_uri_on_jump_label;
struct grid *url_grid_snapshot;
bool ime_reenable_after_url_mode;
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
bool ime_enabled;