Permalink
Browse files

resolve keyboard change bug

  • Loading branch information...
malayaleecoder committed Aug 21, 2016
1 parent 16a7e91 commit a72da9228c8c9930c2535c83c4762ebc62d8b877
Showing with 4 additions and 4 deletions.
  1. +4 −4 java/src/org.smc.inputmethod/indic/WordComposer.java
@@ -110,10 +110,12 @@ public void restartCombining(final String combiningSpec) {

public void setTransliterationMethod(InputMethod transliterationMethod) {
mTransliterationMethod = transliterationMethod;
mTransliterationEngine = null;
}

public void setTransliterationEngine(Varnam vm) {
mTransliterationEngine = vm;
mTransliterationMethod = null;
}
/**
* Clear out the keys registered so far.
@@ -277,10 +279,8 @@ public void applyProcessedEvent(final Event event) {
final int keyY = event.mY;
final int newIndex = size();

if(mTransliterationMethod != null)
applyTransliteration(event);
if(mTransliterationEngine != null)
applyTransliterationByEngine(event);
applyTransliteration(event);
applyTransliterationByEngine(event);

refreshTypedWordCache();
mCursorPositionWithinWord = mCodePointSize;

0 comments on commit a72da92

Please sign in to comment.