Bugzilla
Quick Search
Browse
Advanced Search
Reports
Quick Search Help
Documentation
New Account
Log In
Login with GitHub
Remember
Forgot Password
Mozilla Home
Privacy
Cookies
Legal
Attachment 420498 Details for
Bug 354358
testcase
ime_key_events.html (text/html), 1.31 KB, created by
Masayuki Nakano [:masayuki] (he/him)(JST, +0900)
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Masayuki Nakano [:masayuki] (he/him)(JST, +0900)
Size:
1.31 KB
patch
obsolete
><html> ><head> ><script type="text/javascript"> > >function attach() >{ > var e = document.getElementById("input"); > e.addEventListener("keydown", log, false); > e.addEventListener("keyup", log, false); > e.addEventListener("keypress", log, false); > e.addEventListener("compositionstart", log, false); > e.addEventListener("compositionend", log, false); > e.addEventListener("compositionupdate", log, false); > e.addEventListener("textinput", log, false); > e.addEventListener("input", log, false); >} > >function detach() >{ > var e = document.getElementById("input"); > e.removeEventListener("keydown", log, false); > e.removeEventListener("keyup", log, false); > e.removeEventListener("keypress", log, false); > e.removeEventListener("compositionstart", log, false); > e.removeEventListener("compositionend", log, false); > e.removeEventListener("compositionupdate", log, false); > e.removeEventListener("textinput", log, false); > e.removeEventListener("input", log, false); >} > >function log(aEvent) >{ > var e = document.getElementById("log"); > var text = document.createTextNode(aEvent.type + "\n"); > e.insertBefore(text, e.firstChild); >} ></script> ></head> ><body onload="attach()" onunload="detach()"> ><input id="input"> ><pre id="log" style="overflow:auto;width: 300px; height: 200px;"></pre> ></body>
<html> <head> <script type="text/javascript"> function attach() { var e = document.getElementById("input"); e.addEventListener("keydown", log, false); e.addEventListener("keyup", log, false); e.addEventListener("keypress", log, false); e.addEventListener("compositionstart", log, false); e.addEventListener("compositionend", log, false); e.addEventListener("compositionupdate", log, false); e.addEventListener("textinput", log, false); e.addEventListener("input", log, false); } function detach() { var e = document.getElementById("input"); e.removeEventListener("keydown", log, false); e.removeEventListener("keyup", log, false); e.removeEventListener("keypress", log, false); e.removeEventListener("compositionstart", log, false); e.removeEventListener("compositionend", log, false); e.removeEventListener("compositionupdate", log, false); e.removeEventListener("textinput", log, false); e.removeEventListener("input", log, false); } function log(aEvent) { var e = document.getElementById("log"); var text = document.createTextNode(aEvent.type + "\n"); e.insertBefore(text, e.firstChild); } </script> </head> <body onload="attach()" onunload="detach()"> <input id="input"> <pre id="log" style="overflow:auto;width: 300px; height: 200px;"></pre> </body>
Actions:
View
Attachments on
bug 354358
:
240564
|
240566
|
240567
| 420498