I want to be able to perform an action with the contents of a field by pressing the negative sign, just as can be done with the enter key or return key. Is this possible, and if so, what is used to call the action.
Thanks.
Dave
Using "ordinary" keys for special actions
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Using "ordinary" keys for special actions
Hi dsquance,
if you mean you are editing a field and then type "-" then this code does some action. Put it into the script of the field you want to edit.
Kind regards
Bernd
if you mean you are editing a field and then type "-" then this code does some action. Put it into the script of the field you want to edit.
Code: Select all
on keyDown theKey
if theKey is "-" then
-- or a more meaningful action here
set the textsize of me to random (22-14 +1) + 14-1
else
pass keyDown
end if
end keyDown
Bernd
Re: Using "ordinary" keys for special actions
Of course. I didn't remember the simple keydown.
Thank you.
Dave
Thank you.
Dave