Personal tools
You are here: Home Forums egoban.org discussion Keyboard shortcuts
Document Actions

Keyboard shortcuts

Up to egoban.org discussion

Keyboard shortcuts

Posted by wildclaw at September 15. 2006
Here is a small userscript that I wrote as a opera user script. Feel free to use or adept the code if you want to.


window.onkeypress =
function (e) {
var evtobj=window.event? event : e //distinguish between IE's explicit event object (window.event) and Firefox's implicit.

if(typeof(gamePath) != 'undefined') //Check if we are viewing a game
{
if(evtobj.keyCode == 39) //Right arrow
{
if(evtobj.ctrlKey)
ffwdMove();
else
nextMove();
}

if(evtobj.keyCode == 37) //Left arrow
{
if(evtobj.ctrlKey)
rwndMove();
else
prevMove();
}
}
}

Re: Keyboard shortcuts

Posted by George Gozadinos at September 15. 2006

Great idea! I'll implement it asap;
)

Powered by Ploneboard

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: