Skip to content

PWA: shortcuts like ctrl-W are sometimes handled by the browser #150735

@laurentlb

Description

@laurentlb

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.67.2
  • Chrome Version: 101
  • OS Version: Chrome OS (probably others too)

Steps to Reproduce:

  1. Open https://vscode.dev
  2. Install as a PWA
  3. When an editor has the focus, shortcuts like Ctrl-W or Ctrl-N are correctly handled by vscode.
  4. Open an image or a webview, try again Ctrl-W or Ctrl-N. It's handled by the browser.

At Google, we've had multiple reports like this. Ctrl-W will sometimes close a tab (as expected); it will sometimes close the full app (which can be very annoying). I've reproduced the same issue with Ctrl-N: depending on what has the focus, Chrome might open a new browser tab or not.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededwebviewWebview issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions