diff options
author | 2019-02-07 20:48:57 +0100 | |
---|---|---|
committer | 2019-02-07 20:48:57 +0100 | |
commit | 0900a0139ebeac3f66b185c9f4271c93b498eb16 (patch) | |
tree | c772d7fbea7ec3fa16c0d23dd110330ed8f165b5 /src/webview/contextMenu.js | |
parent | fix(Service): Improve focus when switching services (diff) | |
download | ferdium-app-0900a0139ebeac3f66b185c9f4271c93b498eb16.tar.gz ferdium-app-0900a0139ebeac3f66b185c9f4271c93b498eb16.tar.zst ferdium-app-0900a0139ebeac3f66b185c9f4271c93b498eb16.zip |
Spellcheck language autodetection
First prototype is based on slack
Diffstat (limited to 'src/webview/contextMenu.js')
-rw-r--r-- | src/webview/contextMenu.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js index a76c03e5a..7fadfa72b 100644 --- a/src/webview/contextMenu.js +++ b/src/webview/contextMenu.js | |||
@@ -237,6 +237,17 @@ const buildMenuTpl = (props, suggestions, isSpellcheckEnabled, defaultSpellcheck | |||
237 | type: 'separator', | 237 | type: 'separator', |
238 | visible: defaultSpellcheckerLanguage !== spellcheckerLanguage, | 238 | visible: defaultSpellcheckerLanguage !== spellcheckerLanguage, |
239 | }, | 239 | }, |
240 | { | ||
241 | id: 'automaticDetection', | ||
242 | label: 'Automatic language detection', | ||
243 | type: 'radio', | ||
244 | visible: defaultSpellcheckerLanguage !== spellcheckerLanguage, | ||
245 | checked: spellcheckerLanguage === 'automatic', | ||
246 | click() { | ||
247 | debug('Detect spellchecker language automatically'); | ||
248 | ipcRenderer.sendToHost('set-service-spellchecker-language', 'automatic'); | ||
249 | }, | ||
250 | }, | ||
240 | ...spellcheckingLanguages], | 251 | ...spellcheckingLanguages], |
241 | }); | 252 | }); |
242 | 253 | ||