Mesh search field should autofocus, #4777
This commit is contained in:
parent
7211a62c5c
commit
d859b95070
@ -135,6 +135,7 @@ class HomeWindow(gtk.Window):
|
|||||||
self._canvas.set_root(self._friends_box)
|
self._canvas.set_root(self._friends_box)
|
||||||
elif self._level == ShellModel.ZOOM_MESH:
|
elif self._level == ShellModel.ZOOM_MESH:
|
||||||
self._canvas.set_root(self._mesh_box)
|
self._canvas.set_root(self._mesh_box)
|
||||||
|
self._mesh_box.focus_search_entry()
|
||||||
|
|
||||||
def get_home_box(self):
|
def get_home_box(self):
|
||||||
return self._home_box
|
return self._home_box
|
||||||
|
@ -563,3 +563,5 @@ class MeshBox(hippo.CanvasBox):
|
|||||||
if hasattr(icon, 'set_filter'):
|
if hasattr(icon, 'set_filter'):
|
||||||
icon.set_filter(self._query)
|
icon.set_filter(self._query)
|
||||||
|
|
||||||
|
def focus_search_entry(self):
|
||||||
|
self._toolbar._search_entry.grab_focus()
|
||||||
|
Loading…
Reference in New Issue
Block a user