1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Electron: Added several keyboard shortcuts

This commit is contained in:
Laurent Cozic
2018-02-16 18:08:02 +00:00
parent 7244e12b78
commit 4218b65969
6 changed files with 76 additions and 7 deletions

View File

@@ -22,6 +22,14 @@ shim.isMac = () => {
return process && process.platform === 'darwin';
}
shim.platformName = function() {
if (shim.isReactNative()) return 'mobile';
if (shim.isMac()) return 'darwin';
if (shim.isWindows()) return 'win32';
if (shim.isLinux()) return 'linux';
throw new Error('Cannot determine platform');
}
// https://github.com/cheton/is-electron
shim.isElectron = () => {
// Renderer process