[PR #22233] [CLOSED] Add Ctrl+W/Cmd+W keyboard shortcut to close current chat #130218

Closed
opened 2026-05-21 14:02:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22233
Author: @nKOxxx
Created: 3/4/2026
Status: Closed

Base: mainHead: add-close-chat-shortcut


📝 Commits (1)

  • 247449f Add 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

  • Added keyboard event listener for Ctrl+W/Cmd+W
  • Integrated with existing chat close functionality
  • Added proper preventDefault to avoid browser tab close

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>
GiteaMirror added the pull-request label 2026-05-21 14:02:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#130218