mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
gtk(command_palette): grab focus correctly
This commit is contained in:
committed by
Mitchell Hashimoto
parent
a5f1413a1c
commit
832f27596c
@@ -94,9 +94,8 @@ pub fn deinit(self: *CommandPalette) void {
|
||||
|
||||
pub fn toggle(self: *CommandPalette) void {
|
||||
self.dialog.present(self.window.window.as(gtk.Widget));
|
||||
|
||||
// Focus on the search bar when opening the dialog
|
||||
self.dialog.setFocus(self.search.as(gtk.Widget));
|
||||
_ = self.search.as(gtk.Widget).grabFocus();
|
||||
}
|
||||
|
||||
pub fn updateConfig(self: *CommandPalette, config: *const configpkg.Config) !void {
|
||||
|
||||
Reference in New Issue
Block a user