blob: fca283e004c7d9f16b5bf3a9065a1829981ed581 [file] [log] [blame]
<!DOCTYPE html>
function test()
if (window.testRunner) {
// Ctrl+Enter might get translated to a click event, which gets in turn
// would lead to a default navigation policy of new-foreground-tab. We
// test here that Ctrl+something else doesn't override the navigation
// policy for
eventSender.keyDown("n", ["ctrlKey"]);
function key()
{"about:blank", "", "status=0");
<body onload="test()">
<p>Tests that hitting any key but enter doesn't override the regular window policy.</p>
<button onkeypress="key()" id="link">link</button>