Skip to content

macOS: certain commands executed twice when focus is in webview #64724

Closed
@bpasero

Description

@bpasero

Extracted from #56988 (comment)

When invoking a keybinding that also exists on the macOS native menu, while having focus inside a webview, the command is both triggered through the menu and our keybinding forwarder (here).

It looks like we could possibly use webContents.setIgnoreMenuShortcuts(true) to workaround this, but then any menu that is implemented with a :role will not work (e.g. cut, copy, paste).

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugmacosIssues with VS Code on MAC/OS XverifiedVerification succeededwebviewWebview issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions