KeyboardKitPro icon indicating copy to clipboard operation
KeyboardKitPro copied to clipboard

RTL languages long pressing "Space" moves the caret wrongly

Open ez-ai21 opened this issue 1 year ago • 3 comments

Current state: Gesture swipe to the right at the end of the text does nothing. Gesture swipe to the right moves the caret left. Gesture swipe to the left moves the caret right.

https://github.com/KeyboardKit/KeyboardKitPro/assets/175294009/47401758-26fd-43ea-b7ee-6fb4c484d297

Expected result: Gesture swipe to the right moves caret to the right if possible. Gesture swipe to the left moves the caret to the left if possible.

ez-ai21 avatar Jul 11 '24 11:07 ez-ai21

Hi @ez-ai21 - does this only behave incorrectly for RTL locales?

danielsaidi avatar Jul 11 '24 15:07 danielsaidi

Hi @ez-ai21 - does this only behave incorrect in RTL locales?

Correct. I believe that the caret movement should behave the same in all languages (RTL and LTR) if it is to align with Apple's approach.

ez-ai21 avatar Jul 12 '24 09:07 ez-ai21

Ok got it, thank you! This probably broke once the SDK started applying the primary language correctly. I’ll fix it!

danielsaidi avatar Jul 12 '24 10:07 danielsaidi

This should work in the upcoming 8.7.2

danielsaidi avatar Jul 15 '24 09:07 danielsaidi