From 8716ca578495d93ff6fcfa1001ca86413ecf7ba6 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 21 May 2024 06:18:00 +0200 Subject: 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. --- csi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'csi.c') diff --git a/csi.c b/csi.c index 3e044908..be470e70 100644 --- a/csi.c +++ b/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: -- cgit v1.3