ELECTRON-869 Enable spellchecker for main window (#547)

This commit is contained in:
Kiran Niranjan
2019-01-14 17:28:20 +05:30
committed by Vishwas Shashidhar
parent 6de3c05223
commit a206b567c2
5 changed files with 59 additions and 3 deletions

View File

@@ -180,6 +180,13 @@ electron.ipcMain.on(apiName, (event, arg) => {
windowMgr.handleKeyPress(arg.keyCode);
}
break;
case apiCmds.isMisspelled:
if (typeof arg.text === 'string') {
/* eslint-disable no-param-reassign */
event.returnValue = windowMgr.isMisspelled(arg.text);
/* eslint-enable no-param-reassign */
}
break;
case apiCmds.openScreenSharingIndicator:
if (typeof arg.displayId === 'string' && typeof arg.id === 'number') {
openScreenSharingIndicator(event.sender, arg.displayId, arg.id);