- using 'Escape' key shortcut while the focus is in the Tcl Shell command line will set focus on the main canvas

This commit is contained in:
Marius Stanciu
2020-11-25 21:14:18 +02:00
committed by Marius
parent 9b08c51bba
commit fb983872d0
7 changed files with 58 additions and 49 deletions

View File

@@ -322,6 +322,10 @@ class FCShell(TermWidget):
self.app.inform_shell[str, bool].connect(self.app.info_shell)
self._browser.find_text = self.find_text
self._edit.on_escape_key = self.on_escape_key
def on_escape_key(self):
self.app.plotcanvas.native.setFocus()
def find_text(self):
edit_cursor = self._edit.textCursor()