From d420723503329f8440753b95e2a82ff72fb794c6 Mon Sep 17 00:00:00 2001 From: Jeffrey Xuan Date: Wed, 2 Jun 2021 11:18:19 +1000 Subject: [PATCH] =?UTF-8?q?ToneOZ=20=E6=BE=B3=E8=81=B2=E9=80=9A=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E5=B7=A5=E5=85=B7=E6=95=B4=E5=90=88:=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E6=BB=91=E9=BC=A0=E5=9C=88=E9=81=B8=E6=9F=A5=E8=A9=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ime/zhdicui.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ime/zhdicui.js b/ime/zhdicui.js index f26541d..59b9030 100644 --- a/ime/zhdicui.js +++ b/ime/zhdicui.js @@ -84,7 +84,12 @@ function ZiHaiDicUI(){ } } } else if(selectedString){ - phrases = [selectedString]; + selectedString = selectedString.substr(0,intMaxPhrase-1); + let selectedArr = selectedString.split(""); + if(selectedArr.length > 1){ + selectedArr.unshift(selectedString); + } + phrases = selectedArr; } if(phrases != null){ isIframeReady = false;