From a1a4bd44127bc0badf0b1c2ed6c467f96e86c287 Mon Sep 17 00:00:00 2001 From: qwertyyb Date: Tue, 16 Apr 2024 23:49:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=92=8C=E6=95=B0=E5=AD=97=E4=B9=8B=E9=97=B4=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E7=A9=BA=E6=A0=BC=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#129?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Fire/FireInputController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Fire/FireInputController.swift b/Fire/FireInputController.swift index 33b5c55..2aeb449 100644 --- a/Fire/FireInputController.swift +++ b/Fire/FireInputController.swift @@ -240,6 +240,11 @@ class FireInputController: IMKInputController { return true } _lastInputIsNumber = true + if Utils.shared.shouldConcatWithWhitespace(_lastInputText, string) { + // 中文后输入了数字,先插入一个空格 + insertText(" ") + } + _lastInputText = event.characters! } return nil }