react-native-electron-platform 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -140,11 +140,11 @@ function loadAppContent(mainWindow, __dirname) {
|
|
|
140
140
|
|
|
141
141
|
function setupDevToolsShortcuts(mainWindow) {
|
|
142
142
|
mainWindow.webContents.on("before-input-event", (event, input) => {
|
|
143
|
-
if (input.
|
|
144
|
-
mainWindow.
|
|
143
|
+
if (input.key === "F11") {
|
|
144
|
+
mainWindow.setFullScreen(!mainWindow.isFullScreen());
|
|
145
145
|
event.preventDefault();
|
|
146
146
|
} else if (input.key === "F12") {
|
|
147
|
-
mainWindow.webContents.
|
|
147
|
+
mainWindow.webContents.openDevTools({ mode: "detach" });
|
|
148
148
|
event.preventDefault();
|
|
149
149
|
} else if (
|
|
150
150
|
input.key === "F5" ||
|