Skip to content

Add ESC key listener to close client overlay component #5498

@tedbrakob

Description

@tedbrakob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions