Using the LBUTTON_DN key is the same as
using a keyboard key. So the command will execute ignoring of where
the mouse cursor is. This is the effect you want if the key you had
defined was say F1. You want the keyboard command to execute no
matter where the mouse cursor is.
To only have a command execute on top of a symbol use the key
LBUTTON_CMD_DN. This is the same as LBUTTON_DN, however it only
executes when you are on top of the object. The raw key code
associated with this key name is KEY_LBTN_CMD_DN. There is also
commands for right buttons and up commands.
|