Created
January 12, 2023 07:31
-
-
Save leMaur/21901bf6125871443e615d05955bf305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const passwordInput = document.getElementById('password'); | |
passwordInput.addEventListener('keyup', function (event) { | |
if (event.getModifierState('CapsLock')) { | |
// CapsLock is open | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment