November 2019
Beginner
436 pages
8h 52m
English
Now that you have got the Open File functionality and registered the global keyboard shortcut for it, let's see what it takes to load a file from the local filesystem back into the editor component:
globalShortcut.register('CommandOrControl+O', () => { // show open dialog });
We have already imported the dialog object from the Electron framework. You can use it to invoke the system's Open dialog as well.
globalShortcut.register('CommandOrControl+O', () => { const window = BrowserWindow.getFocusedWindow(); ...Read now
Unlock full access