open-webui/src/lib
Parvez Salim a6d210f644 feat: add keyboard shortcuts for playground and edit last user message
Closes #1008

- Ctrl/Cmd+Enter: run/submit in Playground Chat and Completions
- Ctrl/Cmd+Shift+A: add message in Playground Chat (mirrors Add button, auto-toggles role)
- Ctrl/Cmd+Shift+X: toggle user/assistant role in Playground Chat
- Ctrl/Cmd+E: edit last user message from anywhere in the main chat

Playground shortcuts handled locally via svelte:window in each component.
Global layout handler covers Ctrl/Cmd+E using getElementsByClassName pattern.
2026-04-28 22:18:33 -05:00
..
apis chore: format 2026-04-24 18:48:21 +09:00
components feat: add keyboard shortcuts for playground and edit last user message 2026-04-28 22:18:33 -05:00
constants refac 2026-04-01 01:21:21 -05:00
i18n chore: i18n 2026-04-24 18:48:45 +09:00
pyodide wip: pyodide kernel 2025-02-04 21:02:11 -08:00
stores refac 2026-04-20 09:33:10 +09:00
types chore: format 2024-08-26 15:38:42 +02:00
utils refac 2026-04-21 16:32:17 +09:00
workers refac 2026-03-24 16:20:29 -05:00
constants.ts refac 2026-04-17 10:44:29 +09:00
dayjs.js chore: format 2025-11-23 20:15:52 -05:00
emoji-groups.json feat: emoji picker 2024-12-30 02:20:09 -08:00
emoji-shortcodes.json feat: emoji picker 2024-12-30 02:20:09 -08:00
index.ts chat feature added 2023-10-08 15:38:42 -07:00
shortcuts.ts feat: add keyboard shortcuts for playground and edit last user message 2026-04-28 22:18:33 -05:00