Fixed double shift implementation. Added implicit renaming

This commit is contained in:
2025-07-24 21:42:13 +02:00
parent 34f959812b
commit 1ceddfac7c
3 changed files with 34 additions and 1 deletions

View File

@@ -39,7 +39,9 @@ function bindAIBuddy(elementId) {
event.preventDefault();
makeAIRequest();
}
});
document.addEventListener('keyup', (event) => {
if (event.key === 'Shift') {
const currentTime = new Date().getTime();
if (currentTime - lastShiftPress <= doublePressDelay) {