[Phpfreechat-svn] SF.net SVN: phpfreechat: [558] trunk/themes/default/templates/pfcclient.js.tpl.ph
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-08 19:58:31
|
Revision: 558 Author: kerphi Date: 2006-06-08 12:58:15 -0700 (Thu, 08 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=558&view=rev Log Message: ----------- Bug fix: replace the UP/DOWN key by PAGEUP/PAGEDOWN for the commands history Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-08 19:45:18 UTC (rev 557) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-08 19:58:15 UTC (rev 558) @@ -439,7 +439,7 @@ */ callbackWords_OnKeypress: function(evt) { - var code = (evt.which) ? evt.which : evt.keyCode + var code = (evt.which) ? evt.which : evt.keyCode; if (code == Event.KEY_TAB) /* tab key */ { /* FF & Konqueror workaround : ignore TAB key here */ @@ -486,7 +486,7 @@ w.value = ''; return false; } - else if (code == Event.KEY_UP) /* up key */ + else if (code == 33) /* page up key */ { // write the last command in the history if (this.cmdhistory.length>0) @@ -500,7 +500,7 @@ w.value = this.cmdhistory[this.cmdhistoryid]; } } - else if (code == Event.KEY_DOWN) /* down key */ + else if (code == 34) /* page down key */ { // write the next command in the history if (this.cmdhistory.length>0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |