fix: forward focus_in/_out events to all mainview widgets
This commit is contained in:
parent
c9dc713537
commit
44356e5d30
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue