You can now press ESC to close the popup window.

git-svn-id: http://svn.automattic.com/wordpress/trunk@120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-06-01 04:22:20 +00:00
parent 4aa52900e1
commit 18cd0c2fb3

View File

@ -105,6 +105,14 @@ QQQ;
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
<?php
// Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18)
?>
<script type="text/javascript">
document.onkeypress = function esc(e) {
if(typeof(e) == "undefined") { e=event; }
if (e.keyCode == 27) { self.close(); }
}
</script>
</body>
</html>