Commit 57188bc 1 parent 3ae3273 commit 57188bc Copy full SHA for 57188bc
File tree 2 files changed +9
-1
lines changed
app/src/main/java/com/osfans/trime
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,14 @@ public static boolean isAsciiMode() {
292
292
return mStatus .is_ascii_mode ;
293
293
}
294
294
295
+ public static boolean isAsciiPunch () {
296
+ return mStatus .is_ascii_punct ;
297
+ }
298
+
299
+ public static boolean showAsciiPunch () {
300
+ return mStatus .is_ascii_punct || mStatus .is_ascii_mode ;
301
+ }
302
+
295
303
public static RimeComposition getComposition () {
296
304
if (mContext == null ) return null ;
297
305
return mContext .composition ;
Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ public String getLabel() {
588
588
Event event = getEvent ();
589
589
if (!TextUtils .isEmpty (label )
590
590
&& event == getClick ()
591
- && (events [KeyEventType .ASCII .ordinal ()] == null && !Rime .isAsciiMode ()))
591
+ && (events [KeyEventType .ASCII .ordinal ()] == null && !Rime .showAsciiPunch ()))
592
592
return label ; // 中文狀態顯示標籤
593
593
return event .getLabel ();
594
594
}
You can’t perform that action at this time.
0 commit comments