Spellcheck: add language changer & swap position with paste/cut/copy

This commit is contained in:
Vendicated
2024-05-23 17:30:40 +02:00
parent bca8872db1
commit f232cfc3c8
9 changed files with 71 additions and 29 deletions

View File

@@ -40,7 +40,7 @@ export const VesktopNative = {
set: (settings: Settings, path?: string) => invoke<void>(IpcEvents.SET_SETTINGS, settings, path)
},
spellcheck: {
setLanguages: (languages: readonly string[]) => invoke<void>(IpcEvents.SPELLCHECK_SET_LANGUAGES, languages),
getAvailableLanguages: () => sendSync<string[]>(IpcEvents.SPELLCHECK_GET_AVAILABLE_LANGUAGES),
onSpellcheckResult(cb: SpellCheckerResultCallback) {
spellCheckCallbacks.add(cb);
},