mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22403] [CLOSED] feat: add keyboard shortcuts for playground and edit last message #42290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22403
Author: @Br1an67
Created: 3/8/2026
Status: ❌ Closed
Base:
main← Head:feat/issue-1008-keyboard-shortcuts📝 Commits (1)
6954f88feat: add keyboard shortcuts for playground and edit last message📊 Changes
3 files changed (+91 additions, -2 deletions)
View changed files
📝
src/lib/components/playground/Chat.svelte(+54 -1)📝
src/lib/shortcuts.ts(+33 -1)📝
src/routes/(app)/+layout.svelte(+4 -0)📄 Description
Fixes #1008
Summary
This PR adds keyboard shortcuts to improve the user experience in both the Playground and the main chat interface. It addresses the issue of having limited shortcuts and uses more ergonomic two-key combinations for frequently used actions.
Changes
Ctrl/Cmd+Enter- Submit and generate responseCtrl/Cmd+Shift+Enter- Add message to conversationCtrl/Cmd+Shift+R- Toggle between user and assistant roleCtrl/Cmd+E- Edit last user message (works regardless of input state)Testing
Files Changed
Changelog Entry
Description
Added keyboard shortcuts for Playground and a dedicated shortcut for editing the last message in the main chat.
Added
Ctrl/Cmd+Enter- Submit in PlaygroundCtrl/Cmd+Shift+Enter- Add message in PlaygroundCtrl/Cmd+Shift+R- Toggle role (user/assistant) in PlaygroundCtrl/Cmd+E- Edit last user message in main chatChanged
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.