Add ESC key listener to close client overlay component
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
PR welcome
@alexander-akait Raised the PR against the issue please have a look https://github.com/webpack/webpack-dev-server/pull/5598
Fixed