add ctrl+Enter support to orgies

master
Aevann 2024-04-10 13:22:06 +02:00
parent a571b5dd71
commit 22f2273c08
1 changed files with 7 additions and 0 deletions

View File

@ -6,3 +6,10 @@ function remove_orgy(t, chat_id, created_utc) {
}
);
}
document.addEventListener('keydown', (e) => {
if (!((e.ctrlKey || e.metaKey) && e.key === "Enter"))
return;
document.getElementById('start-orgy').click();
});