Fixed double shift implementation. Added implicit renaming
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user