Skip to content

Commit

Permalink
fix composing key
Browse files Browse the repository at this point in the history
  • Loading branch information
wxyzh authored and Bambooin committed Mar 11, 2023
1 parent b3ab8ab commit 887651c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/osfans/trime/ime/keyboard/Key.java
Expand Up @@ -124,7 +124,7 @@ public Key(Keyboard parent, Map<String, Object> mk) {
s = CollectionUtils.obtainString(mk, typeStr, "");
if (!TextUtils.isEmpty(s)) {
events[type.ordinal()] = new Event(mKeyboard, s);
hasComposingKey = type.ordinal() < KeyEventType.COMBO.ordinal();
if (type.ordinal() < KeyEventType.COMBO.ordinal()) hasComposingKey = true;
} else if (type == KeyEventType.CLICK) {
events[type.ordinal()] = new Event(mKeyboard, "");
}
Expand Down

0 comments on commit 887651c

Please sign in to comment.