Skip to content

Instantly share code, notes, and snippets.

@ldmsys
Last active January 6, 2023 07:24
Show Gist options
  • Save ldmsys/b7e8563af33e7eafa524dd5b892a0b04 to your computer and use it in GitHub Desktop.
Save ldmsys/b7e8563af33e7eafa524dd5b892a0b04 to your computer and use it in GitHub Desktop.
MacBook 버터플라이 키보드 키 중복 이슈 증명용
// 개발자 도구 콘솔에 아래 코드를 붙여넣고 문서를 포커스하여 테스트하세요.
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