apprt/gtk: comments
parent
e18a7d9501
commit
b8393fd4aa
|
|
@ -185,6 +185,9 @@ pub const SearchOverlay = extern struct {
|
|||
pub fn grabFocus(self: *Self) void {
|
||||
const priv = self.private();
|
||||
_ = priv.search_entry.as(gtk.Widget).grabFocus();
|
||||
|
||||
// Select all text in the search entry field. -1 is distance from
|
||||
// the end, causing the entire text to be selected.
|
||||
priv.search_entry.as(gtk.Editable).selectRegion(0, -1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue