Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command W closed the Chrome tab without warning. It didn't close the file tab in Stackblitz editor #1745

Open
1 task done
ADTC opened this issue Feb 22, 2025 · 0 comments

Comments

@ADTC
Copy link

ADTC commented Feb 22, 2025

Describe the bug

As said on tin.

Link to the blitz that caused the error

https://stackblitz.com/edit/github-j37imzkt?file=src%2Fpages%2Findex.astro&on=stackblitz

Steps to reproduce

  1. Open Stackblitz in Chrome.
  2. Open some file tabs.
  3. Press Command - W (or Ctrl-W in Windows). Chrome tab closes.

Behavior is likely the same in other browsers.

Expected behavior

If it's possible to capture the keyboard shortcut, close the file tab in the Stackblitz editor. If there are no remaining file tabs, then a confirmation should ask if the Stackblitz editor should be close.

If it's not possible, then kindly have the "dirty state" flag enabled which forces the browser to confirm whether I accidentally press Command-W (macOS) or Ctrl-W (Windows) and it will close the tab.

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 132549304,
  "usedJSHeapSize": 101371368,
  "jsHeapSizeLimit": 4294705152
}
Hash = 7f809d15

Additional context

As this is a StackBlitz UI issue, "Parity with Local" is irrelevant here. If this is the wrong repo for UI issues, please help move it to the correct one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant