diff --git a/ui-html/webview2/settings/ime-settings/src/modules/config-sync.ts b/ui-html/webview2/settings/ime-settings/src/modules/config-sync.ts index 6ef98f2d..69cd6b15 100644 --- a/ui-html/webview2/settings/ime-settings/src/modules/config-sync.ts +++ b/ui-html/webview2/settings/ime-settings/src/modules/config-sync.ts @@ -23,6 +23,14 @@ export function setupConfigSync(): void { if (typeof payload.data?.general?.floating_toolbar === 'boolean') { applyToggleState('ftbToggleBtn', payload.data.general.floating_toolbar); } + if (typeof payload.data?.general?.paging_minus_equal === 'boolean') { + const checkbox = document.getElementById('pagingMinusEqualCheckbox') as HTMLInputElement | null; + if (checkbox) checkbox.checked = payload.data.general.paging_minus_equal; + } + if (typeof payload.data?.general?.paging_tab === 'boolean') { + const checkbox = document.getElementById('pagingTabCheckbox') as HTMLInputElement | null; + if (checkbox) checkbox.checked = payload.data.general.paging_tab; + } if (typeof payload.data?.helpcode?.show_sp_helpcode_in_candidate_window === 'boolean') { applyToggleState( 'showShuangpinHelpcodeToggleBtn', diff --git a/ui-html/webview2/settings/ime-settings/src/modules/general.ts b/ui-html/webview2/settings/ime-settings/src/modules/general.ts index 794406c4..cc4d5ca8 100644 --- a/ui-html/webview2/settings/ime-settings/src/modules/general.ts +++ b/ui-html/webview2/settings/ime-settings/src/modules/general.ts @@ -19,7 +19,10 @@ function setupPageOptions(): void { checkboxes.forEach((checkbox: Element) => { checkbox.addEventListener('change', (e: Event) => { const target = e.target as HTMLInputElement; - if (target.checked) { + if (target.value === 'minus') { + updateConfig('general.paging_minus_equal', target.checked); + } else if (target.value === 'tab') { + updateConfig('general.paging_tab', target.checked); } }); }); diff --git a/ui-html/webview2/settings/ime-settings/src/partials/general.html b/ui-html/webview2/settings/ime-settings/src/partials/general.html index cecf0f3c..54899eba 100644 --- a/ui-html/webview2/settings/ime-settings/src/partials/general.html +++ b/ui-html/webview2/settings/ime-settings/src/partials/general.html @@ -18,14 +18,14 @@