Forum Archive

Defining a Line up/Line down keyboard function

abredall

So I've been trying to figure out if it would be posible to define a function to navigate between lines. For those with big fingers using iOS, it can be frustrating to constantly have to hold just to navigate one exactly one line above/below where you tapped.

Fortunately Pythonista includes functions to navigate left/right, but this is what makes me think this may simply be a feature request. However, I figured there must be some workaround I’m missing.

cvp

@abredall iOS standard: two fingers on keyboard?

7upser

or tap and hold space

abredall

@cvp I couldn’t seem to get this to work on the standard iOS keyboard or PyKeys and couldn’t find any related setting either

abredall

@7upser I actually didn’t know the space bar had a similar effect. It actually works pretty well, but only works on the default iOS keyboard. I was hoping to find a solution that worked on PyKeys (ideally in my navigation bar next so it’s one click and done)

cvp

@abredall you want to use these keys in any other app TextField?

cvp

@abredall If you only use normal characters (not like emojis that use several unicodes), it is not so difficult to go up or down one line by counting characters in each line. But be careful because all lines have different length

cvp

@abredall please, have a look here
You will find an example of PYKeys keyboard with up and down keys.

And check also the "down" process quickly added (and not tested) to my script for additional keys in Pythonista keyboard, here

cvp

@abredall said:

I couldn’t seem to get this to work on the standard iOS keyboard

See here

shinya.ta

@cvp

Long time no see.
Thank you for your help before.

I can't use the application of the previous beta version.

What should I do to be able to use it again?

cvp

@shinya.ta Hello, welcome back.
Sorry, I don't understand.
About which application, do you speak? Pythonista it-self or à script I wrote for you?
If Pythonista, which level do you use?

shinya.ta

@cvp

It is the custom keyboard code written in this topic.
I was in trouble because I couldn't use it.

cvp

@shinya.ta missed a n at end of line 107

        b_right.action = b_right_action 

corrected

shinya.ta

@cvp

Thank you.

Once I re-installed Pythonista, I could use it again.

cvp

@shinya.ta 👍