From 4ea4625de13a581b79f8335ef2aaa51aece9d562 Mon Sep 17 00:00:00 2001 From: fanlumaster <1730976608@qq.com> Date: Sat, 17 Jan 2026 22:43:40 +0800 Subject: [PATCH] [ftb]: feat: double/single char btn --- ui-html/webview2/ftb/default.html | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/ui-html/webview2/ftb/default.html b/ui-html/webview2/ftb/default.html index 9e1192e0..82adb601 100644 --- a/ui-html/webview2/ftb/default.html +++ b/ui-html/webview2/ftb/default.html @@ -94,7 +94,8 @@
- + +
@@ -103,7 +104,7 @@ fill="white" />
- +
-
+ + +
+ +
+ + + +
@@ -213,6 +222,19 @@ window.chrome.webview.postMessage(JSON.stringify({ type: 'changeIMEMode', data: 'cn' })); }); + // + // 半角全角切换 + // + // Default status is Halfwidth + document.getElementById('fullwidth').style.display = 'none'; + // document.getElementById('halfwidth').style.display = 'none'; + document.getElementById('halfwidth').addEventListener('click', () => { + window.chrome.webview.postMessage(JSON.stringify({ type: 'changeCharMode', data: 'fullwidth' })); + }); + document.getElementById('fullwidth').addEventListener('click', () => { + window.chrome.webview.postMessage(JSON.stringify({ type: 'changeCharMode', data: 'halfwidth' })); + }); + // // 中英文标点切换 //