mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-24 00:46:53 +01:00
Docs: document keyboard shortcuts
This commit is contained in:
parent
b3fc2cd887
commit
ec2da5adef
20
docs/13 - Keyboard Shortcuts.md
Normal file
20
docs/13 - Keyboard Shortcuts.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Keyboard Shortcuts
|
||||||
|
|
||||||
|
#### General
|
||||||
|
|
||||||
|
| Shortcut | Description |
|
||||||
|
|-------------------------|--------------------------------------------------|
|
||||||
|
| Esc | Stop generation |
|
||||||
|
| Tab | Switch between current tab and Parameters tab |
|
||||||
|
|
||||||
|
#### Chat tab
|
||||||
|
|
||||||
|
| Shortcut | Description |
|
||||||
|
|-------------------------|--------------------------------------------------|
|
||||||
|
| Ctrl + S | Show/hide chat controls |
|
||||||
|
| Ctrl + Enter | Regenerate |
|
||||||
|
| Alt + Enter | Continue |
|
||||||
|
| Ctrl + Shift + Backspace| Remove last |
|
||||||
|
| Ctrl + Shift + K | Copy last |
|
||||||
|
| Ctrl + Shift + L | Replace last |
|
||||||
|
| Ctrl + Shift + M | Impersonate |
|
@ -99,7 +99,7 @@ document.addEventListener("keydown", function(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Switch between tabs on Tab
|
// Switch between tabs on Tab
|
||||||
else if (!event.ctrlKey && !event.shiftKey && event.key === "Tab") {
|
else if (!event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey && event.key === "Tab") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var parametersButton = document.getElementById("parameters-button");
|
var parametersButton = document.getElementById("parameters-button");
|
||||||
var parentContainer = parametersButton.parentNode;
|
var parentContainer = parametersButton.parentNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user