mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #24211] feat: add keyboard shortcuts for playground and edit last user message #50553
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/24211
Author: @MahammadParvezSalim
Created: 4/29/2026
Status: 🔄 Open
Base:
dev← Head:feat/keyboard-shortcuts-playground📝 Commits (1)
a6d210ffeat: add keyboard shortcuts for playground and edit last user message📊 Changes
5 files changed (+71 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/ShortcutsModal.svelte(+5 -0)📝
src/lib/components/playground/Chat.svelte(+20 -0)📝
src/lib/components/playground/Completions.svelte(+13 -0)📝
src/lib/shortcuts.ts(+29 -1)📝
src/routes/(app)/+layout.svelte(+4 -0)📄 Description
Closes #1008
Adds keyboard shortcuts to the Playground (which previously had none) and a global shortcut to edit the last user message in the main chat.
Pull Request Checklist
devbranch.Ctrl+/).svelte:windowandgetElementsByClassNamepatterns already present in the codebase.dev.feat:Changelog Entry
Description
Ctrl/Cmd+Eto edit the last user message from anywhere in the main chat. Addresses #1008.Added
Ctrl/Cmd+Enter— Run/submit in Playground Chat and CompletionsCtrl/Cmd+Shift+A— Add message in Playground Chat (mirrors Add button, auto-toggles role)Ctrl/Cmd+Shift+X— Toggle user/assistant role in Playground ChatCtrl/Cmd+E— Edit last user message from anywhere in the main chatCtrl+/)Changed
src/lib/shortcuts.ts— addedEDIT_LAST_MESSAGE,PLAYGROUND_SUBMIT,PLAYGROUND_ADD_MESSAGE,PLAYGROUND_TOGGLE_ROLEenum values and registry entriessrc/routes/(app)/+layout.svelte— added globalCtrl/Cmd+Ehandlersrc/lib/components/playground/Chat.svelte— added localsvelte:windowkeydown handlersrc/lib/components/chat/ShortcutsModal.svelte— added i18n extraction comments for new stringsScreenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.