ethraza
23 Jun 2007, 7:30 AM
I think that type of missing information on Documentation is at least a bug by omission.
The documentation of addKeyListener is not talking about the parameters passed to the handle function and sometimes it take hours or days to new bees to undestand that more than one parameter is currently passed:
On a:
SCOPEOBJ.addKeyListener(KEY, function(i,k,e){...}, SCOPEOBJ);The addKeyListener will pass 3 arguments to the handle function
1- i - The ID of the Scope Object
2- k - The Key pressed
3- e - The Event Object it self
In the hope that this helps somebody.
The documentation of addKeyListener is not talking about the parameters passed to the handle function and sometimes it take hours or days to new bees to undestand that more than one parameter is currently passed:
On a:
SCOPEOBJ.addKeyListener(KEY, function(i,k,e){...}, SCOPEOBJ);The addKeyListener will pass 3 arguments to the handle function
1- i - The ID of the Scope Object
2- k - The Key pressed
3- e - The Event Object it self
In the hope that this helps somebody.