Fix: Reverse left/right keypress when editing RTL text. (#12711)

When editing RTL text, pressing left should increment instead of decrement the character position to move left, and vice versa.
This commit is contained in:
Peter Nelson
2024-05-23 21:34:05 +01:00
committed by GitHub
parent f87c6990b0
commit 5fefe0b61f
2 changed files with 41 additions and 16 deletions
+3
View File
@@ -72,6 +72,9 @@ private:
bool CanDelChar(bool backspace);
bool MovePrev(StringIterator::IterType what);
bool MoveNext(StringIterator::IterType what);
void DeleteText(uint16_t from, uint16_t to, bool update);
void UpdateStringIter();