From 54a8ea70d4793b07b65f0f6c6a9a0baeadd477da Mon Sep 17 00:00:00 2001 From: Daniel Karski Date: Mon, 16 Sep 2024 10:47:46 +0200 Subject: [PATCH] [debug] Add logs --- libs/shared/utils/src/lib/prevent-default-shortcuts.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/shared/utils/src/lib/prevent-default-shortcuts.ts b/libs/shared/utils/src/lib/prevent-default-shortcuts.ts index dc0636f286..48e001e836 100644 --- a/libs/shared/utils/src/lib/prevent-default-shortcuts.ts +++ b/libs/shared/utils/src/lib/prevent-default-shortcuts.ts @@ -17,6 +17,10 @@ export function preventDefaultShortcuts(win: BrowserWindow) { event.preventDefault() } + logger.info(`xxxxpreventDefaultShortcuts1.5 control: ${control}`) + logger.info(`xxxxpreventDefaultShortcuts1.5 control: ${meta}`) + logger.info(`xxxxpreventDefaultShortcuts1.5 key: ${key}`) + // Prevent default DevTools shortcut (Ctrl+Shift+I or Cmd+Opt+I) and 'dead' key issue // This is necessary because removing the menu in Windows/Linux disables the shortcut, // but on macOS, the shortcut still works. Therefore, we need to explicitly prevent it.