- 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user