mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-15 00:34:42 +09:00
Refocus search entry on ctrl+F
This commit is contained in:
@@ -118,6 +118,8 @@ class WarehouseApplication(Adw.Application):
|
|||||||
try:
|
try:
|
||||||
button = self.props.active_window.stack.get_visible_child().search_button
|
button = self.props.active_window.stack.get_visible_child().search_button
|
||||||
button.set_active(True)
|
button.set_active(True)
|
||||||
|
entry = self.props.active_window.stack.get_visible_child().search_entry
|
||||||
|
entry.grab_focus()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user