ID photo of Ciro Santilli taken in 2013 right eyeCiro Santilli OurBigBook logoOurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
js/keydown.html
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>keydown.html</title>
<script>
</script>
</head>
<body>
<p>Press "d" to stop logging the document callback.</p>
<p>Try giving this input focus:</p>
<input id="input"></input>
<div id="log"></div>
<script>
function logKey(e, pref) {
  log.innerHTML += `<div>${pref}: ${e.code} ${e.ctrlKey} ${e.key}</div>`;
  if (e.code === 'KeyD') {
    log.innerHTML += `<div></div>`;
    document.removeEventListener('keydown', logDocumentKeydown);
    document.removeEventListener('keyup', logDocumentKeyup);
  }
}
let logDocumentKeydown = e => logKey(e, "document keydown")
let logDocumentKeyup = e => logKey(e, "document keyup")
const log = document.getElementById('log');
const input = document.getElementById('input');
document.addEventListener('keydown', logDocumentKeydown);
document.addEventListener('keyup', logDocumentKeyup);
input.onkeydown = e => logKey(e, "input keydown");
input.onkeyup = e => logKey(e, "input keyup");
</script>
</body>
</html>