returnKey

Typemessage
Dictionarymac.textfield
LibraryMac Native Single-line Field
Syntax
on returnKey
Associationscom.livecode.widget.native.mac.textfield
Summary

Sent when the user presses the return key

OSmac
Example
on returnKey
    -- ensure the user has entered a number
    if the text of the target is not a number then
      beep
      answer "Invalid number entered!"
    end if
end returnKey
Description

Use the returnKey message to respond to the user pressing the return key whilst the field is focused.