From a97734c60b0f22f143f66629b346e52e085eaeff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Sep 2025 14:18:53 +0530 Subject: [PATCH] Dont report modifyOtherKeys when running tests --- kitty/screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index e2071807d..4cb7d64ed 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1675,7 +1675,10 @@ screen_modify_other_keys(Screen *self, unsigned val, unsigned val2) { // Only report an error about modifyOtherKeys if the kitty keyboard // protocol is not in effect and the application is trying to turn it on. // There are some applications that try to enable both. - if (!screen_current_key_encoding_flags(self) && val == 4 && val2 != INT_MAX && val2 != 0) { + if ( + self->test_child == Py_None && !screen_current_key_encoding_flags(self) && + val == 4 && val2 != INT_MAX && val2 != 0 + ) { log_error("The application is trying to use xterm's modifyOtherKeys. This is superseded by the kitty keyboard protocol https://sw.kovidgoyal.net/kitty/keyboard-protocol. The application should be updated to use that."); } }