Ios Keyboard selections with Cloze operation select wrong text

Keyboard selections with Cloze operation select wrong text

with a keyboard attached to ipad

in editing mode in a Cloze note

move the cursor into the text
typpe
CMD-Shift-RightArrow
Cmd-Shift-C

observe that it does something odd:

example

One
Two

select using the above technique

[One]
Two

becomes

{{c1::
One
}}Two

expected

{{c1::One}}
Two

image

note that other selection methods don’t have this problem.

I’m afraid there’s no simple fix for this - Anki uses Apple’s text editor to handle this, and it appears to be including the surrounding newline (“div”) when you select text that way.

1 Like

But interestingly when handling Spaces in between words on a single line, Anki does take account of the larger selection:

Text: One Two Three
Selection: [One ]Two
Close: [[One]] Two

the space after the one is rejected and placed outside the close.

Can we do the same with with CR?

Spaces and newlines are represented differently internally, which is probably why Apple’s web libraries are behaving differently in the two cases. It’s possible that the situation will improve if/when AnkiMobile adopts the move to BRs that the latest computer beta has, but it is not something I’ve had time to explore yet.

1 Like