mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-09 21:38:47 -05:00
[PR #18533] [MERGED] fix: display correct keys for international keyboards #11622
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/18533
Author: @silentoplayz
Created: 10/23/2025
Status: ✅ Merged
Merged: 10/27/2025
Merged by: @tjbck
Base:
dev← Head:fix-keyboard-shortcuts-display📝 Commits (1)
02a2683fix: display correct keys for international keyboards📊 Changes
1 file changed (+31 additions, -6 deletions)
View changed files
📝
src/lib/components/chat/ShortcutItem.svelte(+31 -6)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
This pull request fixes a UI bug where the keyboard shortcuts displayed in the "Shortcuts" modal were incorrect for users with non-US keyboard layouts (e.g., Norwegian). The component now uses the
navigator.keyboard.getLayoutMap()API to dynamically detect the user's keyboard layout and display the character that corresponds to the physical key, ensuring the visual guide matches the user's hardware.Changed
ShortcutItem.svelteto usenavigator.keyboard.getLayoutMap()for dynamically displaying shortcut keys.Fixed
Ctrl + /(on a US keyboard) is now correctly displayed asCtrl + -on a Norwegian keyboard.Additional Information
Keyboard.getLayoutMap()API will provide an improved, layout-aware experience, while older browsers will gracefully fall back to the previous behavior without any loss of functionality.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.