Garrick Cheung

Sharing what I know and learn about CSS, MooTools, Javascript, PHP and etc.

MooTools Delete Key

Posted on | October 20, 2008 | No Comments

David Walsh has kept us informed in his post about the delete key event.

To detect the delete key, this does not work because ‘delete’ is a reserved word in javascript:

1
var isdel = Event.Keys.delete;

So here is the proper way:

1
var isdel = Event.Keys['delete'];

He put it best:

As flexible as Moo’s language is, you can’t get around the reserved words!

Great job on keeping the MooTools community well informed, David!

Comments

Leave a Reply





taking viagra woman Cheap Viagra
cheap gerneric viagra?