mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
inspector: add clear keyboard events button
This commit is contained in:
@ -926,6 +926,14 @@ fn renderKeyboardWindow(self: *Inspector) void {
|
||||
break :list;
|
||||
}
|
||||
|
||||
if (cimgui.c.igButton("Clear", .{ .x = 0, .y = 0 })) {
|
||||
var it = self.key_events.iterator(.forward);
|
||||
while (it.next()) |v| v.deinit(self.surface.alloc);
|
||||
self.key_events.clear();
|
||||
}
|
||||
|
||||
cimgui.c.igSeparator();
|
||||
|
||||
_ = cimgui.c.igBeginTable(
|
||||
"table_key_events",
|
||||
1,
|
||||
|
Reference in New Issue
Block a user