mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #13813] [CLOSED] feat: Add the ability for any user to edit their own shortcuts in the settings modal #38924
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/13813
Author: @edmcquinn
Created: 5/12/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (4)
240f98bAdd the ability to edit keyboard shortcuts4d79efeMerge branch 'open-webui:dev' into dev2c520b8Added + svg40ed4b6Merge branch 'dev' of https://github.com/edmcquinn/open-webui into dev📊 Changes
4 files changed (+1664 additions, -1371 deletions)
View changed files
➕
src/lib/components/chat/Settings/Shortcuts.svelte(+361 -0)📝
src/lib/components/chat/SettingsModal.svelte(+781 -739)📝
src/lib/components/chat/ShortcutsModal.svelte(+184 -318)📝
src/routes/(app)/+layout.svelte(+338 -314)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Key aspects include:
Full Customization: A dedicated shortcut section of the settings modal empowers users to redefine default shortcuts, choosing 2 or 3-key combinations for actions like opening new chats, focusing inputs, copying content, toggling UI elements, and more.
Dynamic Handling: The application now globally recognizes and applies these user-defined shortcuts, falling back to sensible defaults if no customization is present.
Clear Visibility: An updated "Show Shortcuts" modal dynamically displays the currently active key combinations (whether custom or default), ensuring users always have a quick reference.
Improved Workflow: By allowing users to set up shortcuts that best fit their workflow and accessibility needs, this feature aims to make daily interaction with the application faster, more efficient, and more comfortable.
This enhancement directly addresses the desire for a more accessible and user-centric interface, putting more control into the hands of the user for an application that plays a significant role in their daily tasks.
Added
maxPartsdefinition 3 keys per shortcut).maxPartsis 3 and two keys are present.Changed
$settings.shortcuts) is the source of truth for custom shortcut configurations, used by the configuration panel, global handler, and display modal. Defaults are stored in each of these files though to maintain a non breaking change. So it checks to see if there is anything in settings.shortcuts for that key is there is not it will use the hardcoded defaults for the project.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
New settings for shortcuts:
Showing that the shortcut modal menu (within the ? help in the bottom right) shows the user edited keys if they are changed if not it defaults to the projects hardcoded defaults:
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.