Hi,
I'm playing with custom HW keyboard shortcuts. It works perfectly and it's available here. Feels odd to swizzle outside of +load, but it's another story. @omz is there an easy way how to distinguish between different Pythonista states? I mean - editor is visible, editor is active, console is visible, ... I can traverse view hierarchy, view controllers, check their states, ... to find what I need. But I assume there is some nice property in PythonistaWindow, which can tell me in what state Pythonista is? I assume there's something like this, because PythonistaWindow.keyCommands returns different key commands based on current state. Searching, searching, but not luck yet. Basically I would like to solve this.
Or I can try to switch to addKeyCommand on specific view controllers (should work, didn't test it yet).
Thanks,
Zrzka