1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

enable devtools

This commit is contained in:
Dick Choi
2016-06-07 10:48:20 +09:00
parent 187ccaa95e
commit 4299baec5d
2 changed files with 8 additions and 3 deletions

View File

@@ -33,9 +33,6 @@ class HomePage extends React.Component {
handleKeyDown (e) {
if (isModalOpen()) {
if (e.keyCode === 13 && (OSX ? e.metaKey : e.ctrlKey)) {
remote.getCurrentWebContents().send('modal-confirm')
}
if (e.keyCode === 27) closeModal()
return
}

View File

@@ -146,6 +146,14 @@ var view = {
click: function () {
BrowserWindow.getFocusedWindow().reload()
}
},
{
label: 'Toggle Developer Tools',
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click(item, focusedWindow) {
if (focusedWindow)
focusedWindow.webContents.toggleDevTools();
}
}
]
}