omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Bug: keyboard focus stays in editor despite displaying console

    Pythonista
    1
    1
    1449
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonB
      JonB last edited by

      open a new file.
      paste in simple example below.
      press run.

      import ui
      ui.View().present('sheet')
      print 'switching to console....'
      #but, after view is closed, cursor is still in editor, but display is in console
      

      after closing the view that pops up, the console is shown, because of the print, however focus is never given to the console text entry. if you start typing, the typed stuff goes into the editor, perhaps overwriting whatever was highlighted, and certainly messing up whatever was there!
      in other words, the console is shown, implying typed words go there, instead it goes to the hidden editor.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors