mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
Merge pull request #570 from Helium314/patch-1
Invert space bar swipe direction for RTL languages
This commit is contained in:
commit
08247bd887
1 changed files with 4 additions and 0 deletions
|
@ -1393,6 +1393,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onMovePointer(int steps) {
|
public void onMovePointer(int steps) {
|
||||||
|
// for RTL languages we want to invert pointer movement
|
||||||
|
if (mRichImm.getCurrentSubtype().isRtlSubtype())
|
||||||
|
steps = -steps;
|
||||||
|
|
||||||
mInputLogic.finishInput();
|
mInputLogic.finishInput();
|
||||||
if (steps < 0) {
|
if (steps < 0) {
|
||||||
int availableCharacters = mInputLogic.mConnection.getTextBeforeCursor(64, 0).length();
|
int availableCharacters = mInputLogic.mConnection.getTextBeforeCursor(64, 0).length();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue