dom/inputmethod/mochitest/file_test_sendkey_cancel.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/inputmethod/mochitest/file_test_sendkey_cancel.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<body>
     1.7 +<input id="test-input" type="text" value="Yolo"/>
     1.8 +<script type="application/javascript;version=1.7">
     1.9 +  let input = document.getElementById('test-input');
    1.10 +  input.focus();
    1.11 +  
    1.12 +  input.addEventListener('keydown', function(e) {
    1.13 +    e.preventDefault();
    1.14 +  });
    1.15 +</script>
    1.16 +</body>
    1.17 +</html>

mercurial