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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-electron-platform",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "A boilerplate and utilities for running React Native applications in desktop environments using Electron.",
5
5
  "main": "index.mjs",
6
6
  "scripts": {
@@ -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.control && input.shift && input.key.toLowerCase() === "i") {
144
- mainWindow.webContents.toggleDevTools();
143
+ if (input.key === "F11") {
144
+ mainWindow.setFullScreen(!mainWindow.isFullScreen());
145
145
  event.preventDefault();
146
146
  } else if (input.key === "F12") {
147
- mainWindow.webContents.toggleDevTools();
147
+ mainWindow.webContents.openDevTools({ mode: "detach" });
148
148
  event.preventDefault();
149
149
  } else if (
150
150
  input.key === "F5" ||