Skip to content

Commit bfcc2c6

Browse files
committed
Renamed method to onKeyboardShortcut.
Signed-off-by: ubi de feo <[email protected]>
1 parent e159d5f commit bfcc2c6

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

backend/ipc.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ module.exports = function registerIPCHandlers(win, ipcMain, app, dialog) {
129129
return response != opt.cancelId
130130
})
131131

132-
ipcMain.handle('reload', (event, message = 'ciao, cane') => {
133-
console.log('reload?')
134-
win.webContents.send('reload', message)
135-
})
136-
137132
win.on('close', (event) => {
138133
console.log('BrowserWindow', 'close')
139134
event.preventDefault()

preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const Window = {
157157
setWindowSize: (minWidth, minHeight) => {
158158
ipcRenderer.invoke('set-window-size', minWidth, minHeight)
159159
},
160-
anyShortcut: (callback, key) => {
160+
onKeyboardShortcut: (callback, key) => {
161161
ipcRenderer.on('shortcut-cmd', (event, k) => {
162162
// Get the active element
163163
const activeElement = document.activeElement;

ui/arduino/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ async function store(state, emitter) {
13681368

13691369
// })
13701370

1371-
win.anyShortcut((key) => {
1371+
win.onKeyboardShortcut((key) => {
13721372
if (key === 'C') {
13731373
emitter.emit('open-connection-dialog')
13741374
}

0 commit comments

Comments
 (0)