Focus after zooming (LP: #238046
This commit is contained in:
parent
4a74f74897
commit
2cc15d6607
|
@ -1559,6 +1559,8 @@ class Terminator:
|
||||||
self.old_parent.remove(widget)
|
self.old_parent.remove(widget)
|
||||||
self.window.add(widget)
|
self.window.add(widget)
|
||||||
self._zoomed = True
|
self._zoomed = True
|
||||||
|
index = self.term_list.index (widget)
|
||||||
|
self.term_list[index]._vte.grab_focus ()
|
||||||
|
|
||||||
def unzoom_term (self, widget):
|
def unzoom_term (self, widget):
|
||||||
"""Proof of concept: Go back to previous application
|
"""Proof of concept: Go back to previous application
|
||||||
|
@ -1572,6 +1574,9 @@ class Terminator:
|
||||||
self.old_parent.set_current_page(self.old_page)
|
self.old_parent.set_current_page(self.old_page)
|
||||||
print "\nPARENT IS A NOTEBOOK\n"
|
print "\nPARENT IS A NOTEBOOK\n"
|
||||||
self._zoomed = False
|
self._zoomed = False
|
||||||
|
index = self.term_list.index (widget)
|
||||||
|
self.term_list[index]._vte.grab_focus ()
|
||||||
|
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue