• jamm

    In another app I want it to form tags around the text every time enter is pressed. It seems impossible due to limitations.

    posted in Pythonista read more
  • jamm

    How can I debug that this is being called? The alert and insert_text functions don’t have an effect. The only thing that happens is it appends “o” only for key presses to the soft keyboard. I’m editing Text Effects.py

    def textview_should_change(self, textview, range, replacement):
        keyboard.insert_text("r")
        dialogs.alert("s")
        return True
    
    def no_effect(text):
        keyboard.insert_text("p")
        dialogs.alert("q")
        return text + "o"
    

    posted in Pythonista read more
  • jamm

    I want to make it so when the keyboard is active it is inserting a tag before and after the text whenever I press return. I only use the external keyboard, never the on screen keyboard.

    posted in Pythonista read more
  • jamm

    I am trying to build a function where every time you press enter on external keyboard, it inserts some text at the beginning and end of the line before the app handles the enter key press. Is this impossible?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!