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' })); + }); + // // 中英文标点切换 //