Skip to content

Commit 2b3a187

Browse files
committed
gtk(command_palette): don't autoselect first entry
See #7173, #7175
1 parent 079d009 commit 2b3a187

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/apprt/gtk/CommandPalette.zig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ pub fn init(self: *CommandPalette, window: *Window) !void {
6767
.{},
6868
);
6969

70-
_ = gtk.SearchEntry.signals.activate.connect(
71-
self.search,
72-
*CommandPalette,
73-
searchActivated,
74-
self,
75-
.{},
76-
);
77-
7870
_ = gtk.ListView.signals.activate.connect(
7971
self.view,
8072
*CommandPalette,
@@ -142,12 +134,6 @@ fn searchStopped(_: *gtk.SearchEntry, self: *CommandPalette) callconv(.c) void {
142134
_ = self.dialog.close();
143135
}
144136

145-
fn searchActivated(_: *gtk.SearchEntry, self: *CommandPalette) callconv(.c) void {
146-
// If Enter is pressed in the search bar,
147-
// then activate the first entry (if any)
148-
self.activated(0);
149-
}
150-
151137
fn rowActivated(_: *gtk.ListView, pos: c_uint, self: *CommandPalette) callconv(.c) void {
152138
self.activated(pos);
153139
}

0 commit comments

Comments
 (0)