You can now press ESC to close the popup window.
git-svn-id: https://develop.svn.wordpress.org/trunk@120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7de4771410
commit
79e9cff5ed
@ -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>
|
Loading…
Reference in New Issue
Block a user