From 0fa701a1343a1c8b7044bbf3c9c138cb3fbf9aab Mon Sep 17 00:00:00 2001 From: Lee0701 Date: Fri, 31 Jul 2020 23:01:49 +0900 Subject: [PATCH] Fix shift press breaking hangul composition --- .../org/dslul/openboard/inputmethod/event/HangulCombiner.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/event/HangulCombiner.kt b/app/src/main/java/org/dslul/openboard/inputmethod/event/HangulCombiner.kt index 24664e7bf..c4b3c83b0 100644 --- a/app/src/main/java/org/dslul/openboard/inputmethod/event/HangulCombiner.kt +++ b/app/src/main/java/org/dslul/openboard/inputmethod/event/HangulCombiner.kt @@ -12,7 +12,7 @@ class HangulCombiner : Combiner { val syllable: HangulSyllable? get() = history.lastOrNull() override fun processEvent(previousEvents: ArrayList?, event: Event?): Event? { - if(event == null) return event + if(event == null || event.mKeyCode == Constants.CODE_SHIFT) return event if(Character.isWhitespace(event.mCodePoint)) { val text = combiningStateFeedback reset()