You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Event Handling > grabDown

8.24 grabDown

on.grabDown(x, y)

This routine is called in these situations:

When the user presses and holds the Select key on a handheld
When the user presses Ctrl + Select on a handheld
When the user presses the middle mouse button over an active card on the desktop

x & y are always zero


The grabDown and grabUp events prevent the generation of a mouseUp event in all cases. They will be preceded by a mouseDown event when generated by pressing and holding the Select key on a device.

Introduced in platform.apiLevel = '1.0'