mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 15:32:48 +00:00
fix hangul combiner being used for symbols input
This commit is contained in:
parent
21871e32f9
commit
5f8ed528ab
3 changed files with 5 additions and 3 deletions
|
@ -27,6 +27,7 @@ class CombinerChain(initialText: String) {
|
|||
// so we need to remove the combiner when not writing in hangul script.
|
||||
// Maybe it would be better to always have the Hangul combiner, but make sure it doesn't affect
|
||||
// events for other scripts, but how?
|
||||
// todo: this really should be done properly, hangul combiner should do nothing when it's not needed
|
||||
var isHangul = false
|
||||
set(value) {
|
||||
if (field == value) return
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
|
||||
package org.dslul.openboard.inputmethod.latin.common;
|
||||
|
||||
import android.renderscript.Script;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
|
|
|
@ -448,7 +448,10 @@ public final class InputLogic {
|
|||
mWordBeingCorrectedByCursor = null;
|
||||
mJustRevertedACommit = false;
|
||||
final Event processedEvent;
|
||||
if (currentKeyboardScriptId == ScriptUtils.SCRIPT_HANGUL) {
|
||||
if (currentKeyboardScriptId == ScriptUtils.SCRIPT_HANGUL
|
||||
// only use the Hangul chain if codepoint may actually be Hangul
|
||||
// todo: this whole hangul-related logic should probably be somewhere else
|
||||
&& event.getMCodePoint() >= 0x1100) {
|
||||
mWordComposer.setHangul(true);
|
||||
final Event hangulDecodedEvent = HangulEventDecoder.decodeSoftwareKeyEvent(event);
|
||||
processedEvent = mWordComposer.processEvent(hangulDecodedEvent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue