Last active
January 6, 2023 07:24
-
-
Save ldmsys/b7e8563af33e7eafa524dd5b892a0b04 to your computer and use it in GitHub Desktop.
MacBook 버터플라이 키보드 키 중복 이슈 증명용
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
// 개발자 도구 콘솔에 아래 코드를 붙여넣고 문서를 포커스하여 테스트하세요. | |
document.clear(); document.write("<br>"); | |
var pk = 0; | |
window.onkeyup = () => {pk = 0}; | |
window.onkeydown = (k) => {if(pk!=k.keyCode){document.write((+new Date())+k.key+"<br>"); pk=k.keyCode}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment