Search code examples
javascriptmootoolsmootools-more

MooTools More Keyboard refreshes page?


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?


Solution

  • instantiate it with var kb = new Keyboard();