mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
/qr, /qrset & ctrl+1~9 hotkeys for QRs
This commit is contained in:
@@ -1134,5 +1134,11 @@ $("document").ready(function () {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if (event.ctrlKey && /^[1-9]$/.test(event.key)) {
|
||||
// Your code here
|
||||
event.preventDefault();
|
||||
console.log("Ctrl +" + event.key + " pressed!");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user