keyboard hotkey Ctrl+Up now works with novel and ooba

This commit is contained in:
RossAsscends
2023-03-21 19:03:24 +09:00
parent 5f32055a64
commit 1adea9305e

View File

@ -312,8 +312,17 @@ $("document").ready(function () {
}
if (event.ctrlKey && event.key == "ArrowUp") {
//Ctrl+UpArrow for Connect to last server
console.log(main_api);
if (online_status === "no_connection") {
document.getElementById("api_button").click();
if (main_api == "kobold") {
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