mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
keyboard hotkey Ctrl+Up now works with novel and ooba
This commit is contained in:
@@ -312,9 +312,18 @@ $("document").ready(function () {
|
|||||||
}
|
}
|
||||||
if (event.ctrlKey && event.key == "ArrowUp") {
|
if (event.ctrlKey && event.key == "ArrowUp") {
|
||||||
//Ctrl+UpArrow for Connect to last server
|
//Ctrl+UpArrow for Connect to last server
|
||||||
|
console.log(main_api);
|
||||||
if (online_status === "no_connection") {
|
if (online_status === "no_connection") {
|
||||||
|
if (main_api == "kobold") {
|
||||||
document.getElementById("api_button").click();
|
document.getElementById("api_button").click();
|
||||||
}
|
}
|
||||||
|
if (main_api == "novel") {
|
||||||
|
document.getElementById("api_button_novel").click();
|
||||||
|
}
|
||||||
|
if (main_api == "textgenerationwebui") {
|
||||||
|
document.getElementById("api_button_textgenerationwebui").click();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (event.ctrlKey && event.key == "ArrowLeft") { //for debug, show all local stored vars
|
if (event.ctrlKey && event.key == "ArrowLeft") { //for debug, show all local stored vars
|
||||||
CheckLocal();
|
CheckLocal();
|
||||||
|
Reference in New Issue
Block a user