[GH-ISSUE #15795] feat: Configurable keyboard shortcuts per-OS #33202

Open
opened 2026-04-25 07:06:42 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @joemccall86 on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15795

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

On a mac system, I have the muscle memory of being able to ctrl+a and ctrl+k to clear the text box. This flow doesn't work in open-webui, since ctrl+k brings up the search box instead.

Desired Solution you'd like

Either allow arbitrary keyboard shortcut overrides, or change the detection of isCtrlPressed at 2470da8336/src/routes/(app)/+layout.svelte#L118 to work properly on macOS systems. It looks like the intention was for macOS shortcuts to use the meta key, but in reality it will use ctrl OR meta, which subsumes twice the default shortcuts.

In this case, it looks like "properly" would mean that on macOS systems you'd look at event.metaKey, otherwise you'd look at event.ctrlKey.

Alternatives Considered

No response

Additional Context

No response

Originally created by @joemccall86 on GitHub (Jul 16, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15795 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description On a mac system, I have the muscle memory of being able to ctrl+a and ctrl+k to clear the text box. This flow doesn't work in open-webui, since ctrl+k brings up the search box instead. ### Desired Solution you'd like Either allow arbitrary keyboard shortcut overrides, or change the detection of `isCtrlPressed` at https://github.com/open-webui/open-webui/blob/2470da833679f61619f2275862185259fe7f5168/src/routes/(app)/+layout.svelte#L118 to work properly on macOS systems. It looks like the intention was for macOS shortcuts to use the meta key, but in reality it will use ctrl OR meta, which subsumes twice the default shortcuts. In this case, it looks like "properly" would mean that on macOS systems you'd look at `event.metaKey`, otherwise you'd look at `event.ctrlKey`. ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@silentoplayz commented on GitHub (Aug 25, 2025):

Related - https://github.com/open-webui/open-webui/issues/1008

<!-- gh-comment-id:3218657909 --> @silentoplayz commented on GitHub (Aug 25, 2025): Related - https://github.com/open-webui/open-webui/issues/1008
Author
Owner
<!-- gh-comment-id:3234731202 --> @alythobani commented on GitHub (Aug 28, 2025): Also related: https://github.com/open-webui/open-webui/pull/13813 https://github.com/open-webui/open-webui/discussions/13708
Author
Owner

@alythobani commented on GitHub (Aug 28, 2025):

And #17015 which I just filed, which also deals with an unexpected/undesired shortcut (Cmd+R regenerates last message instead of reloading page)

<!-- gh-comment-id:3234899046 --> @alythobani commented on GitHub (Aug 28, 2025): And #17015 which I just filed, which also deals with an unexpected/undesired shortcut (Cmd+R regenerates last message instead of reloading page)
Author
Owner

@d1ffuser commented on GitHub (Apr 14, 2026):

still relevant...

<!-- gh-comment-id:4246564217 --> @d1ffuser commented on GitHub (Apr 14, 2026): still relevant...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33202