Skip to content

Commit 887651c

Browse files
wxyzhBambooin
wxyzh
authored andcommitted
fix composing key
1 parent b3ab8ab commit 887651c

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/osfans/trime/ime/keyboard

1 file changed

+1
-1
lines changed

app/src/main/java/com/osfans/trime/ime/keyboard/Key.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Key(Keyboard parent, Map<String, Object> mk) {
124124
s = CollectionUtils.obtainString(mk, typeStr, "");
125125
if (!TextUtils.isEmpty(s)) {
126126
events[type.ordinal()] = new Event(mKeyboard, s);
127-
hasComposingKey = type.ordinal() < KeyEventType.COMBO.ordinal();
127+
if (type.ordinal() < KeyEventType.COMBO.ordinal()) hasComposingKey = true;
128128
} else if (type == KeyEventType.CLICK) {
129129
events[type.ordinal()] = new Event(mKeyboard, "");
130130
}

0 commit comments

Comments
 (0)