5 if (!window.eventSender)
8 var onMacPlatform = false;
9 if (navigator.userAgent.search(/\bMac OS X\b/) != -1)
12 if (window.layoutTestController) {
13 layoutTestController.dumpAsText();
16 document.body.focus();
19 eventSender.keyDown('a', ["ctrlKey"]);
21 eventSender.keyDown('a', ["metaKey"]);
23 document.getElementById("console").innerHTML = getSelection().baseNode ? "FAIL" : "PASS";
28 <body onload="test();">
29 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34615">bug 34615</a>. Trying to do a keyboard "select all" using the wrong modifier (e.g. Control on the Mac) should not do anything.