From: <var...@us...> - 2014-08-01 08:48:04
|
Revision: 9047 http://sourceforge.net/p/phpwiki/code/9047 Author: vargenau Date: 2014-08-01 08:47:57 +0000 (Fri, 01 Aug 2014) Log Message: ----------- Close the window with Escape key Modified Paths: -------------- trunk/themes/default/toolbar.js Modified: trunk/themes/default/toolbar.js =================================================================== --- trunk/themes/default/toolbar.js 2014-07-31 15:59:56 UTC (rev 9046) +++ trunk/themes/default/toolbar.js 2014-08-01 08:47:57 UTC (rev 9047) @@ -201,6 +201,12 @@ var h = (screen.height-height)/2; var w = (screen.width-width)/2; replacewin = window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top='+h+',left='+w+',height='+height+',width='+width); + // Close the window with Escape key + replacewin.onkeydown = function(e){ + if(e.keyCode === 27){ + replacewin.window.close(); + } + }; replacewin.window.document.writeln(doctype); replacewin.window.document.writeln('<html>\n<head>\n<title>'+msg_repl_title+'</title>'); replacewin.window.document.writeln(cssfile); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |