summaryrefslogtreecommitdiffstats
path: root/dom/inputmethod/mochitest/file_test_sendkey_cancel.html
blob: f40ee69598363ee64335db0b4c4c514447a4d22f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE HTML>
<html>
<body>
<input id="test-input" type="text" value="Yolo"/>
<script type="application/javascript;version=1.7">
  let input = document.getElementById('test-input');
  input.focus();
  
  input.addEventListener('keydown', function(e) {
    e.preventDefault();
  });
</script>
</body>
</html>