diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 7c816e3..d6c196e 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -499,12 +499,6 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) !void { if (try m.match(.{"mouse_leave"})) return; - if (try m.match(.{"focus_in"})) - return; - - if (try m.match(.{"focus_out"})) - return; - if (try m.match(.{ "K", tp.more })) return; @@ -514,6 +508,12 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) !void { if (try self.send_widgets(from, m)) return; + if (try m.match(.{"focus_in"})) + return; + + if (try m.match(.{"focus_out"})) + return; + if (try m.match(.{ "exit", tp.more })) { if (try m.match(.{ tp.string, "normal" }) or try m.match(.{ tp.string, "timeout_error", 125, "Operation aborted." }) or