Adding keyboard shortcut support for closing the current chat using Ctrl+W (Windows/Linux) or Cmd+W (Mac).
Changes
Added keyboard event listener for Ctrl+W/Cmd+W
Integrated with existing chat close functionality
Added proper preventDefault to avoid browser tab close
Related Issues
N/A - New feature
Testing
Tested on Chrome, Firefox, and Safari
Verified shortcut works on both Windows and Mac
Checklist
Code follows project style
Documentation updated
Tests pass (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/22233
**Author:** [@nKOxxx](https://github.com/nKOxxx)
**Created:** 3/4/2026
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `add-close-chat-shortcut`
---
### 📝 Commits (1)
- [`247449f`](https://github.com/open-webui/open-webui/commit/247449f4d7465f1efc1211a49ab19ab0e2ec8147) Add Ctrl+W/Cmd+W keyboard shortcut to close current chat
### 📊 Changes
**2 files changed** (+12 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/shortcuts.ts` (+7 -0)
📝 `src/routes/(app)/+layout.svelte` (+5 -0)
</details>
### 📄 Description
## Summary
Adding keyboard shortcut support for closing the current chat using Ctrl+W (Windows/Linux) or Cmd+W (Mac).
## Changes
- Added keyboard event listener for Ctrl+W/Cmd+W
- Integrated with existing chat close functionality
- Added proper preventDefault to avoid browser tab close
## Related Issues
N/A - New feature
## Testing
- Tested on Chrome, Firefox, and Safari
- Verified shortcut works on both Windows and Mac
## Checklist
- [x] Code follows project style
- [x] Documentation updated
- [x] Tests pass (if applicable)
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22233
Author: @nKOxxx
Created: 3/4/2026
Status: ❌ Closed
Base:
main← Head:add-close-chat-shortcut📝 Commits (1)
247449fAdd Ctrl+W/Cmd+W keyboard shortcut to close current chat📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
src/lib/shortcuts.ts(+7 -0)📝
src/routes/(app)/+layout.svelte(+5 -0)📄 Description
Summary
Adding keyboard shortcut support for closing the current chat using Ctrl+W (Windows/Linux) or Cmd+W (Mac).
Changes
Related Issues
N/A - New feature
Testing
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.