feat(gui): generate focus_in/_out events from wio app
This commit is contained in:
parent
32ed60bc64
commit
cf496c881c
1 changed files with 8 additions and 2 deletions
|
|
@ -534,8 +534,14 @@ fn wioLoop() void {
|
|||
const cp = pixelToCellPos(mouse_pos);
|
||||
tui_pid.send(.{ "RDR", "B", @as(u8, 1), btn_id, cp.col, cp.row, cp.xoff, cp.yoff }) catch {};
|
||||
},
|
||||
.focused => window.enableTextInput(.{}),
|
||||
.unfocused => window.disableTextInput(),
|
||||
.focused => {
|
||||
window.enableTextInput(.{});
|
||||
tui_pid.send(.{"focus_in"}) catch {};
|
||||
},
|
||||
.unfocused => {
|
||||
window.disableTextInput();
|
||||
tui_pid.send(.{"focus_out"}) catch {};
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue