From: <di...@us...> - 2010-05-29 14:02:25
|
Revision: 11829 http://exist.svn.sourceforge.net/exist/?rev=11829&view=rev Author: dizzzz Date: 2010-05-29 14:02:19 +0000 (Sat, 29 May 2010) Log Message: ----------- [feature] It is much easier to use the sandbox if you don't have to click submit every time you want to run a query. Other sandboxes for databases contain a keybinding for submitting the current buffer. Added a keybinding for ctrl-enter to submit and execute the query. patch by ??? http://sourceforge.net/tracker/?func=detail&atid=317691&aid=3006614&group_id=17691 Modified Paths: -------------- trunk/eXist/webapp/sandbox/scripts/sandbox.js Modified: trunk/eXist/webapp/sandbox/scripts/sandbox.js =================================================================== --- trunk/eXist/webapp/sandbox/scripts/sandbox.js 2010-05-27 20:32:58 UTC (rev 11828) +++ trunk/eXist/webapp/sandbox/scripts/sandbox.js 2010-05-29 14:02:19 UTC (rev 11829) @@ -44,6 +44,8 @@ Event.addListener('query', 'change', checkQuery, false); Event.addListener('maximize', 'click', function () { resizeQueryBox(false); }); Event.addListener('error-close', 'click', hideErrorPanel); + var ctrlEnter = new YAHOO.util.KeyListener(document, { ctrl:true, keys:13}, execQuery); + ctrlEnter.enable(); YAHOO.widget.Logger.enableBrowserConsole(); retrieveStored(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |