1 parent 878064e commit 7311c5dCopy full SHA for 7311c5d
1 file changed
test.html
@@ -1078,13 +1078,13 @@ <h2>輸入法模式:</h2>
1078
if (j < codesToDisplay.length) {
1079
const result = codesToDisplay[j];
1080
const code = result.code;
1081
- const candidatesForCode = currentCodemap[code];
1082
1083
let suffix = '';
1084
- // 檢查是否為第一候選字且編碼長度小於3
1085
- if (result.index === 0 && code.length < 3) {
1086
- suffix = '空';
1087
- } else if (candidatesForCode && candidatesForCode.length > 1) {
+ if (result.index === 0) {
+ if (code.length < 3) {
+ suffix = '空';
+ }
+ } else {
1088
if (result.index < 9) {
1089
const digit = (result.index + 1).toString();
1090
suffix = fullWidthDigits[digit];
0 commit comments