MooTools More Keyboard refreshes page?

189 views Asked by At

I'm playing around with MooTools, including MooTools More.

I currently have a blank HTML page with a reference to both the core and the more js files. However, when I use var kb = Keyboard(), the page gets refreshed. I guess this is not what it is supposed to do.

What is the use of this, or what am I possibly doing wrong?

1

There are 1 answers

0
KJYe.Name On BEST ANSWER

instantiate it with var kb = new Keyboard();