mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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:
parent
4aa52900e1
commit
18cd0c2fb3
@ -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…
x
Reference in New Issue
Block a user