webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

Add ESC key listener to close client overlay component

Open tedbrakob opened this issue 8 months ago • 1 comments

Feature Proposal

Add the ability to close the overlay created by client-src/overlay.js with the ESC key rather than click the "X" in the corner.

Feature Use Case

The webpack-dev-server-client-overlay for errors is often ignorable in development, and having a quick way to dismiss it would be nice.

Please paste the results of npx webpack-cli info here, and mention other relevant information

System: OS: macOS 14.4.1 CPU: (12) arm64 Apple M3 Pro Memory: 123.92 MB / 18.00 GB Binaries: Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node Yarn: 4.9.1 - ~/.nvm/versions/node/v20.9.0/bin/yarn npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm Browsers: Chrome: 136.0.7103.114 Safari: 17.4.1 Monorepos: Yarn Workspaces: 4.9.1

tedbrakob avatar May 16 '25 22:05 tedbrakob

PR welcome

alexander-akait avatar May 19 '25 16:05 alexander-akait

@alexander-akait Raised the PR against the issue please have a look https://github.com/webpack/webpack-dev-server/pull/5598

saurabh007007 avatar Oct 22 '25 10:10 saurabh007007

Fixed

alexander-akait avatar Nov 26 '25 17:11 alexander-akait