enhancement: more keyboard shortcuts #398

Open
opened 2025-11-11 14:20:11 -06:00 by GiteaMirror · 25 comments
Owner

Originally created by @robertvazan on GitHub (Mar 3, 2024).

Is your feature request related to a problem? Please describe.
It's a bit subjective, but current selection of shortcuts is a poor fit. There's a shortcut for settings, which are rarely accessed and not keyboard-friendly anyway. On the other hand, I often edit the last prompt instead of asking followup questions and there's no shortcut to start editing it and no shortcut to submit changes.

There are no shortcuts in the new Playground either, which makes it impossible to use the playground in the streamlined fashion described in #987. Notice the wide range of shortcuts in NovelAI (although NovelAI made the mistake of using Alt, which is impractical on keyboards that replace right Alt with AltGr).

Current WebUI shortcuts use three-key combinations, which are usually only used in text editors with several dozen shortcuts. Simpler two-key shortcuts should be used whenever possible.

Describe the solution you'd like
Maybe collect a list of the most common workflows and optimize shortcuts for them, preferring the more ergonomic shortcuts for the most frequent actions.

Originally created by @robertvazan on GitHub (Mar 3, 2024). **Is your feature request related to a problem? Please describe.** It's a bit subjective, but current selection of shortcuts is a poor fit. There's a shortcut for settings, which are rarely accessed and not keyboard-friendly anyway. On the other hand, I often edit the last prompt instead of asking followup questions and there's no shortcut to start editing it and no shortcut to submit changes. There are no shortcuts in the new Playground either, which makes it impossible to use the playground in the streamlined fashion described in #987. Notice the [wide range of shortcuts](https://docs.novelai.net/text/UserSettings/hotkeys.html) in NovelAI (although NovelAI made the mistake of using Alt, which is impractical on keyboards that replace right Alt with AltGr). Current WebUI shortcuts use three-key combinations, which are usually only used in text editors with several dozen shortcuts. Simpler two-key shortcuts should be used whenever possible. **Describe the solution you'd like** Maybe collect a list of the most common workflows and optimize shortcuts for them, preferring the more ergonomic shortcuts for the most frequent actions.
GiteaMirror added the enhancementgood first issuehelp wantednon-core labels 2025-11-11 14:20:11 -06:00
Author
Owner

@ddegner commented on GitHub (Mar 7, 2024):

I can't find the keyboard shortcuts. But in the same vein, I would love a shortcut for "New chat".

@ddegner commented on GitHub (Mar 7, 2024): I can't find the keyboard shortcuts. But in the same vein, I would love a shortcut for "New chat".
Author
Owner

@robertvazan commented on GitHub (Mar 7, 2024):

@ddegner You are not alone: #1007. Look at the bottom right corner of the screen.

@robertvazan commented on GitHub (Mar 7, 2024): @ddegner You are not alone: #1007. Look at the bottom right corner of the screen.
Author
Owner

@MatthewK78 commented on GitHub (Mar 12, 2024):

There's another keyboard shortcut that I absolutely love in OpenAI's Playground interface -- [Ctrl]+[Enter] to Submit, no matter where you are (e.g. editing previous replies). Having to move my hands away from the keyboard in order to manually click Submit slows me down.

@MatthewK78 commented on GitHub (Mar 12, 2024): There's another keyboard shortcut that I absolutely love in OpenAI's Playground interface -- [Ctrl]+[Enter] to Submit, no matter where you are (e.g. editing previous replies). Having to move my hands away from the keyboard in order to manually click Submit slows me down.
Author
Owner

@nilsherzig commented on GitHub (Mar 16, 2024):

Having escape close the current window (i.e. settings) and return also work on tags and other small input fields would be nice

@nilsherzig commented on GitHub (Mar 16, 2024): Having escape close the current window (i.e. settings) and return also work on tags and other small input fields would be nice
Author
Owner

@tjbck commented on GitHub (Apr 20, 2024):

@nilsherzig Added to our dev branch!

@tjbck commented on GitHub (Apr 20, 2024): @nilsherzig Added to our dev branch!
Author
Owner

@NightMachinery commented on GitHub (May 20, 2024):

Why do the shortcuts use so many modifiers? This is not ergonomic at all.

It's not like this is emacs, there are only a few shortcuts. All of them could be cmd+letter, e.g., cmd+k for new chat (which is what Claude uses).

The shortcuts could also be user-configurable, which would be much better.

image
@NightMachinery commented on GitHub (May 20, 2024): Why do the shortcuts use so many modifiers? This is not ergonomic at all. It's not like this is emacs, there are only a few shortcuts. All of them could be `cmd+letter`, e.g., `cmd+k` for new chat (which is what Claude uses). The shortcuts could also be user-configurable, which would be much better. <img width="755" alt="image" src="https://github.com/open-webui/open-webui/assets/36224762/4c70f838-7147-46d8-97b8-514a03a6f418">
Author
Owner

@tjbck commented on GitHub (May 20, 2024):

image

ChatGPT Keyboard shortcuts.

@tjbck commented on GitHub (May 20, 2024): <img width="1003" alt="image" src="https://github.com/open-webui/open-webui/assets/25473318/eef1f668-8bb1-44a9-8934-534dc072dd85"> ChatGPT Keyboard shortcuts.
Author
Owner

@NightMachinery commented on GitHub (May 20, 2024):

@tjbck Well, their choices are simply bad. I don't see why an opensource UI should imitate them without reason. Of course, there could be "hotkey packs" that configure the shortcuts to imitate ChatGPT for people used to that (IntelliJ does this to make it easy for people coming from other IDEs), but ChatGPT is a very new product, so I don't think this is worth it. Open WebUI should just go with ergonomic shortcuts.

Anyhow, I don't care about the defaults. If I can change these shortcuts, that's enough for me.

@NightMachinery commented on GitHub (May 20, 2024): @tjbck Well, their choices are simply bad. I don't see why an opensource UI should imitate them without reason. Of course, there could be "hotkey packs" that configure the shortcuts to imitate ChatGPT for people used to that (IntelliJ does this to make it easy for people coming from other IDEs), but ChatGPT is a very new product, so I don't think this is worth it. Open WebUI should just go with ergonomic shortcuts. Anyhow, I don't care about the defaults. If I can change these shortcuts, that's enough for me.
Author
Owner

@Piste commented on GitHub (Jun 16, 2024):

I would love it if we could use [cmd]/[ctrl] + [k] for a new chat.

@Piste commented on GitHub (Jun 16, 2024): I would love it if we could use [cmd]/[ctrl] + [k] for a new chat.
Author
Owner

@AspireOne commented on GitHub (Jun 16, 2024):

It should really be editable, because as soon as English is not your native language, you're unable to use some of them. For example, I am from the Czech Republic, so I don't have the keys "#" or "/" mapped on a single button. It is a combination of two buttons for me, and this is not registered in the app.

@AspireOne commented on GitHub (Jun 16, 2024): It should really be editable, because as soon as English is not your native language, you're unable to use some of them. For example, I am from the Czech Republic, so I don't have the keys "#" or "/" mapped on a single button. It is a combination of two buttons for me, and this is not registered in the app.
Author
Owner

@r-darwish commented on GitHub (Jul 30, 2024):

It would also be nice to have a shortcut to toggle web search (and other tools) on and off.

@r-darwish commented on GitHub (Jul 30, 2024): It would also be nice to have a shortcut to toggle web search (and other tools) on and off.
Author
Owner

@thiswillbeyourgithub commented on GitHub (Aug 2, 2024):

It would also be nice to have a shortcut to toggle web search (and other tools) on and off.

As well as a way to toggle:

  • start an audio recording, but also stop (and cancel, which is needed if you set the 'auto send' feature)
  • toggle the "audio chat" mode

At this point it might make sense to add only a single additional binding that would pop up a "command palette" where you can type "start audio chat" for example? I think we risk having too many features compared to the number of available keys. Or just make the shortcuts editable and let the user choose what's relevant to its use case.

As well as adding shift+spacebar to focus the chatbox

@thiswillbeyourgithub commented on GitHub (Aug 2, 2024): > It would also be nice to have a shortcut to toggle web search (and other tools) on and off. As well as a way to toggle: * start an audio recording, but also stop (and cancel, which is needed if you set the 'auto send' feature) * toggle the "audio chat" mode At this point it might make sense to add only a single additional binding that would pop up a "command palette" where you can type "start audio chat" for example? I think we risk having too many features compared to the number of available keys. Or just make the shortcuts editable and let the user choose what's relevant to its use case. As well as adding shift+spacebar to focus the chatbox
Author
Owner

@thiswillbeyourgithub commented on GitHub (Sep 14, 2024):

Hi everyone, I made a new feature request at #5420 to add an admin setting panel with a textbox for js to inject into openwebui.

This would bring a lot of extensibility to the admin, including making it trivial to add shortcuts, modify the font or fontsize, accessibility customization, hide some things for the users, enhance the experience on vertical screens, add a zen mode with an uncluttered UI, etc.

I think adding this would lower the burden on developpers who obviously can't cater to everyone's workflow, while empowering the community to provide snippets for other users.

If you support this feature request show it some love!

@thiswillbeyourgithub commented on GitHub (Sep 14, 2024): Hi everyone, I made a new feature request at #5420 to add an admin setting panel with a textbox for js to inject into openwebui. This would bring a lot of extensibility to the admin, including making it trivial to add shortcuts, modify the font or fontsize, accessibility customization, hide some things for the users, enhance the experience on vertical screens, add a zen mode with an uncluttered UI, etc. I think adding this would lower the burden on developpers who obviously can't cater to everyone's workflow, while empowering the community to provide snippets for other users. If you support this feature request show it some love!
Author
Owner

@strikeoncmputrz commented on GitHub (Sep 25, 2024):

It would be amazing to have a keyboard shortcut to enable / disable web search.

@strikeoncmputrz commented on GitHub (Sep 25, 2024): It would be amazing to have a keyboard shortcut to enable / disable web search.
Author
Owner

@Mugane commented on GitHub (Dec 17, 2024):

Having escape close the current window (i.e. settings) and return also work on tags and other small input fields would be nice

Actually escape should stop the currently generating content, not do random other things...

@Mugane commented on GitHub (Dec 17, 2024): > Having escape close the current window (i.e. settings) and return also work on tags and other small input fields would be nice Actually escape should stop the currently generating content, not do random other things...
Author
Owner

@alghostzx commented on GitHub (Feb 3, 2025):

Editing keyboard shortcuts would be great, and might I suggest hotkeys for toggling web search and toggling image generation?

@alghostzx commented on GitHub (Feb 3, 2025): Editing keyboard shortcuts would be great, and might I suggest hotkeys for toggling web search and toggling image generation?
Author
Owner

@bsima commented on GitHub (Feb 20, 2025):

TIL we have keyboard shortcuts! Although they don't seem to work for me... idk why.

Anyway the one keyboard modification I want is to set Ctrl+Enter to send the message instead of just Enter, this would allow me to use Enter to write paragraphs.

related https://github.com/open-webui/open-webui/discussions/9521

@bsima commented on GitHub (Feb 20, 2025): TIL we have keyboard shortcuts! Although they don't seem to work for me... idk why. Anyway the one keyboard modification I want is to set Ctrl+Enter to send the message instead of just Enter, this would allow me to use Enter to write paragraphs. related https://github.com/open-webui/open-webui/discussions/9521
Author
Owner

@edmcquinn commented on GitHub (May 6, 2025):

Would people be interested in me implementing editing the current ones and allowing the user to change it themselves in the settings?

@edmcquinn commented on GitHub (May 6, 2025): Would people be interested in me implementing editing the current ones and allowing the user to change it themselves in the settings?
Author
Owner

@thiswillbeyourgithub commented on GitHub (May 6, 2025):

Would people be interested in me implementing editing the current ones and allowing the user to change it themselves in the settings?

God yes. Please and thank you.

It would be really great if we could toggle the tool choice pop up via a shortcut.

@thiswillbeyourgithub commented on GitHub (May 6, 2025): > Would people be interested in me implementing editing the current ones and allowing the user to change it themselves in the settings? God yes. Please and thank you. It would be really great if we could toggle the tool choice pop up via a shortcut.
Author
Owner

@edmcquinn commented on GitHub (May 8, 2025):

I am working on a very simple way to edit the current shortcuts. I do not feel confident enough about my understanding of the codebase to enable adding new shortcuts. That being said you can add and remove the third button and change the shortcuts to be whatever you want.

Any feedback here:

Image

@edmcquinn commented on GitHub (May 8, 2025): I am working on a very simple way to edit the current shortcuts. I do not feel confident enough about my understanding of the codebase to enable adding new shortcuts. That being said you can add and remove the third button and change the shortcuts to be whatever you want. Any feedback here: ![Image](https://github.com/user-attachments/assets/768798cd-c10c-4eef-9297-3c15f3e9cd7c)
Author
Owner

@thiswillbeyourgithub commented on GitHub (May 8, 2025):

Looks fine. Does it detect hotkeys or do we have to enter each letter to create a shortcut?

@thiswillbeyourgithub commented on GitHub (May 8, 2025): Looks fine. Does it detect hotkeys or do we have to enter each letter to create a shortcut?
Author
Owner

@edmcquinn commented on GitHub (May 8, 2025):

Looks fine. Does it detect hotkeys or do we have to enter each letter to create a shortcut?

Each key. I am trying to keep it as simple as possible without impacting the rest of the project. You just click it and then you keep typing until the last one is filled.

@edmcquinn commented on GitHub (May 8, 2025): > Looks fine. Does it detect hotkeys or do we have to enter each letter to create a shortcut? Each key. I am trying to keep it as simple as possible without impacting the rest of the project. You just click it and then you keep typing until the last one is filled.
Author
Owner

@edmcquinn commented on GitHub (May 8, 2025):

This has been completed @tjbck - Not sure if it is something you want to add to the project.

Added a discussion post here as I am a first time contributor: https://github.com/open-webui/open-webui/discussions/13708

@edmcquinn commented on GitHub (May 8, 2025): This has been completed @tjbck - Not sure if it is something you want to add to the project. Added a discussion post here as I am a first time contributor: https://github.com/open-webui/open-webui/discussions/13708
Author
Owner

@edmcquinn commented on GitHub (May 12, 2025):

https://github.com/open-webui/open-webui/pull/13813 - I opened a pull request for this.

@edmcquinn commented on GitHub (May 12, 2025): https://github.com/open-webui/open-webui/pull/13813 - I opened a pull request for this.
Author
Owner

@silentoplayz commented on GitHub (Oct 18, 2025):

Related - https://github.com/open-webui/open-webui/pull/18256

@silentoplayz commented on GitHub (Oct 18, 2025): Related - https://github.com/open-webui/open-webui/pull/18256
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#398