Ver código fonte

【2025】【综合】文案调整,符号过滤完善

niehaoyu 1 semana atrás
pai
commit
e9b1daf134

+ 3 - 2
PDF Office/KMComponentLibrary/KMComponentLibrary/View/Input/ComponentInput/ComponentInput.swift

@@ -459,7 +459,8 @@ extension Character {
         
         let isEmoji = scalar.properties.isEmoji
         let isNumber = scalar.value >= 0x0030 && scalar.value <= 0x0039
-
-        return isEmoji && !isNumber
+        let isHashOrAsterisk = scalar.value == 0x0023 || scalar.value == 0x002A // 0x0023 is '#', 0x002A is '*'
+        
+        return isEmoji && !isNumber && !isHashOrAsterisk
     }
 }

+ 1 - 1
PDF Office/PDF Master/Base.lproj/Main.storyboard

@@ -528,7 +528,7 @@ CA
                                                             <action selector="menuItemAction_FontAction:" target="Voe-Tx-rLC" id="0C4-HJ-MRH"/>
                                                         </connections>
                                                     </menuItem>
-                                                    <menuItem title="显示颜色" tag="4" keyEquivalent="C" id="QL2-at-3pA">
+                                                    <menuItem title="Show Colors" tag="4" keyEquivalent="C" id="QL2-at-3pA">
                                                         <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
                                                         <connections>
                                                             <action selector="menuItemAction_FontAction:" target="Voe-Tx-rLC" id="vb4-nE-8Wl"/>