Default Button

Richard Gaskin ambassador at fourthworld.com
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: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv




More information about the use-livecode mailing list