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.
Keyboard blocks input line on iPhone
-
Device: iPhone 8+
OS: 14.2If I directly run a pythonista program that calls input() , the input line is unobstructed.
If I invoke the program from a share sheet, the input line is half obscured by the keyboard.Is there a setting I'm missing that will fix this?
Thanks for a fantastic app!
-
@swp Try disabling shortcuts
https://mobile.twitter.com/olemoritz/status/1063365370394918912?lang=enI thought there was another objc workaround that moved the console input itself, but can't find that discussion now.. maybe @cvp remembers
-
Perhaps @JonB is speaking about this, but I'm not sure
''' This is a script that you can run in the current App Store version of Pythonista (once per session) if you have an iPad Pro, and are suffering from the "extended keys covering the console text" bug. You'll have to kill the app from the app switcher, in order to restore the default state (on-screen key row) ''' #https://gist.github.com/omz/4da31445f14b7d5ae86904a855463359 from objc_util import * UIApp = ObjCClass('UIApplication') import console @on_main_thread def main(): app = UIApp.sharedApplication() cvc = app.windows()[0].rootViewController().accessoryViewController().consoleViewController() tv = cvc.promptEditorView().textView() item = tv.inputAssistantItem() item.setTrailingBarButtonGroups_([]) item.setLeadingBarButtonGroups_([]) console.hud_alert('Extra console keys removed') if __name__ == '__main__': main()
-
Thanks for the ideas!
On iOS 14.2, the "Shortcuts" item seems to have been removed from Keyboard settings and none of
the other settings I've tried seem to make any difference.The script also doesn't seem to make any difference for me (the alert pops up but no change in behavior is observed).
I'm a complete noob when it comes to Python though, so I may be doing something wrong. I'll keep playing with it.It's annoying but not really a show-stopper.
-
@swp understood, sorry, same problem on my iPad Air 4 in landscape mode
-
Even with @JonBoyd 's advice, shortcuts off, same
-
For info, shortcuts (raccourcis in French) setting in keyboards is still there in iPad iOS 14.2
-
Use
-
Thank you, this solution will be perfect! I was wondering if a graphical UI element wouldn't
solve the problem for my application.