mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
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:
parent
18b702b249
commit
8716ca5784
4 changed files with 18 additions and 1 deletions
4
csi.c
4
csi.c
|
|
@ -507,8 +507,10 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
|
|||
case 737769:
|
||||
if (enable)
|
||||
term_ime_enable(term);
|
||||
else
|
||||
else {
|
||||
term_ime_disable(term);
|
||||
term->ime_reenable_after_url_mode = false;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue