Skip to content

Feature Request: Improve keyboard shortcuts in the web interface #16300

@allo-

Description

@allo-

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

The web interface could use some more shortcuts many other chat interfaces have. It already has a send shortcut when sending a new message, but lacks for example a shortcut to store a message after editing, which could be something like ctrl-enter. Dialogs like "Really delete this chat" also seem to have no keyboard shortcuts to confirm or cancel. Here one could add "enter" as shortcut for the default button and "esc" for the secondary button.

Motivation

It would be good to have a consistent way to write and edit messages without using the mouse too much or needing to navigate with tab to the correct button. In the best case, the use of enter/shift-enter/ctrl-enter would be consistent between writing a message and editing a message, e.g. always using ctrl-enter to send or always using enter to send and shift-enter to insert a linebreak.

Possible Implementation

Use similar scripts as when adding a new message.

Other

The github-actions bot auto-closed #15310 and doesn't open it again after commenting in the issue, but the feature is not yet implemented and not discussed if there are reasons against implementing. it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions