Revert "Prevent the page keydown/keyup events and menu shortcuts"
This reverts commit 24c9cc51f4.
This commit is contained in:
parent
24c9cc51f4
commit
60fb61a1db
1 changed files with 0 additions and 2 deletions
|
|
@ -152,7 +152,6 @@ export function createMainWindow() {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
mainWindow.webContents.reload();
|
mainWindow.webContents.reload();
|
||||||
} else if (input.key === "F12") {
|
} else if (input.key === "F12") {
|
||||||
event.preventDefault();
|
|
||||||
if (mainWindow.webContents.isDevToolsOpened()) {
|
if (mainWindow.webContents.isDevToolsOpened()) {
|
||||||
mainWindow.webContents.closeDevTools();
|
mainWindow.webContents.closeDevTools();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -163,7 +162,6 @@ export function createMainWindow() {
|
||||||
input.key === "," &&
|
input.key === "," &&
|
||||||
process.platform === "darwin"
|
process.platform === "darwin"
|
||||||
) {
|
) {
|
||||||
event.preventDefault();
|
|
||||||
mainWindow.webContents.executeJavaScript(`(() => {
|
mainWindow.webContents.executeJavaScript(`(() => {
|
||||||
var escButton = document.querySelector("#floating .top_0 > button");
|
var escButton = document.querySelector("#floating .top_0 > button");
|
||||||
var settingsPanel = document.querySelector("#root div[aria-label='Settings'] > a");
|
var settingsPanel = document.querySelector("#root div[aria-label='Settings'] > a");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue