diff options
Diffstat (limited to 'dom/inputmethod/mochitest/file_test_sendkey_cancel.html')
-rw-r--r-- | dom/inputmethod/mochitest/file_test_sendkey_cancel.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/inputmethod/mochitest/file_test_sendkey_cancel.html b/dom/inputmethod/mochitest/file_test_sendkey_cancel.html new file mode 100644 index 000000000..f40ee6959 --- /dev/null +++ b/dom/inputmethod/mochitest/file_test_sendkey_cancel.html @@ -0,0 +1,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> |