Default Button

Richard Gaskin ambassador at
Thu Sep 1 17:43:48 EDT 2011

Colin Holgate wrote:

> Need this be a good thing? If you're typing into a multiline field you might not be finished at the time you press the Return key. On Mac at least there's the convention that the Enter key might complete the action, and the Return key is just a line break. Not sure how it is on Windows machines. So pressing Enter on Mac would give the expected behavior of completing the action. Look at the LC script editor as an example of that.

Peter's script traps returnKey, which is not sent when the Return key is 
hit while an open field has focus; in that circumstance the 
returnInField message is sent instead.

  Richard Gaskin
  Fourth World
  LiveCode training and consulting:
  Webzine for LiveCode developers:
  LiveCode Journal blog:

More information about the Use-livecode mailing list