|
|
keyboard input control
Added on 2/9/2007
|
Compatibilities:
|
This item has not yet been rated
|
do something if enter or return is pressed in an input text field
block specifc chars
Download Mac Source
on keyDown(me)
ch = _key.key
filterString="12234567890" -- chars stopped
if( not(ch=ENTER or ch=RETURN or filterString contains ch=1) )then pass
end
-- on "enter" or "return" pressed
on keyUp(me)
ch = _key.key
if (ch = ENTER or ch=RETURN) then
-- action
_movie.alert("brau!")
end if
end
|
|