ariririririririri is now supported
This commit is contained in:
parent
ef877a53bd
commit
cddd475909
16
ime.js
16
ime.js
@ -59,7 +59,7 @@ function imeDown(keyEvent, inputField) {
|
||||
imeReset();
|
||||
break;
|
||||
case "Space":
|
||||
//adds a '
|
||||
//adds a ', on second press . an actual space
|
||||
break;
|
||||
case "ArrowLeft":
|
||||
imeMove("left");
|
||||
@ -384,10 +384,20 @@ function imeInput(key) {
|
||||
break;
|
||||
case 2: //trailing
|
||||
if (hVowelsK.includes(key)) {
|
||||
inputFull.push(getUnicodeVowel(key, "trailing"));
|
||||
stateState += 1;
|
||||
if (stateState == 1 && inputCurrent != "") {
|
||||
inputFull.pop();
|
||||
inputFull.push(getUnicodeConsonant(inputCurrent, key));
|
||||
inputCurrent = "";
|
||||
//reset state???
|
||||
stateState = 0;
|
||||
} else {
|
||||
inputFull.push(getUnicodeVowel(key, "trailing"));
|
||||
inputCurrent = "";
|
||||
stateState += 1;
|
||||
}
|
||||
} else {
|
||||
inputFull.push(getUnicodeConsonant(key, "trailing"));
|
||||
if (stateState == 0) inputCurrent = key;
|
||||
stateState += 1;
|
||||
}
|
||||
if (stateState == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user