keyboard-menukey-event.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <html lang="en">
  2. <head>
  3. <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
  4. <title>Menu key testing</title>
  5. <script language="javascript" type="text/javascript">
  6. function log(str) {
  7. var li = document.createElement("li");
  8. li.appendChild(document.createTextNode(str));
  9. var results = document.getElementById("results");
  10. results.appendChild(li);
  11. }
  12. </script>
  13. </head>
  14. <body>
  15. <p>
  16. See bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=30619">30619</a>.
  17. Note: this test is only applicable for Linux and Windows.
  18. </p>
  19. <ol>
  20. <li>Click the text input box below and press Menu key.
  21. The test passes if you see 'PASS' below.
  22. <input type="text" oncontextmenu="log('PASS');" />
  23. </li>
  24. <li oncontextmenu="log('PASS');">Click or select somewhere
  25. in this text and press Menu key.
  26. The test passes if you see additional 'PASS' below.
  27. </li>
  28. </ol>
  29. <ul id="results"></ul>
  30. </body>
  31. </html>