mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-19 07:54:59 +01:00
Merge pull request #68 from vector-im/t3chguy/electron-forward-back
Add riot-desktop shortcuts for forward/back matching browsers&slack
This commit is contained in:
commit
c2ea23293e
@ -295,6 +295,16 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
|||||||
case 'getConfig':
|
case 'getConfig':
|
||||||
ret = vectorConfig;
|
ret = vectorConfig;
|
||||||
break;
|
break;
|
||||||
|
case 'navigateBack':
|
||||||
|
if (mainWindow.webContents.canGoBack()) {
|
||||||
|
mainWindow.webContents.goBack();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'navigateForward':
|
||||||
|
if (mainWindow.webContents.canGoForward()) {
|
||||||
|
mainWindow.webContents.goForward();
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'setLanguage': {
|
case 'setLanguage': {
|
||||||
// work around `setSpellCheckerLanguages` being case-sensitive by converting to expected case
|
// work around `setSpellCheckerLanguages` being case-sensitive by converting to expected case
|
||||||
const caseMap = {};
|
const caseMap = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user