Skip navigation.
 
mlOK on Enter, not Return
FROM : James Walker
DATE : Fri Jun 06 19:54:50 2008

I have a dialog containing an NSTextField and an OK button.  I'd like
the Enter key to act as an equivalent for the OK button, but the Return
key to add a line break to the text.  What's the best way to do that?
--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>

Related mailsAuthorDate
mlOK on Enter, not Return James Walker Jun 6, 19:54
mlRe: OK on Enter, not Return Andrew Merenbach Jun 6, 20:19
mlRe: OK on Enter, not Return Douglas Davidson Jun 6, 21:26
mlRe: OK on Enter, not Return Ken Thomases Jun 6, 21:27
mlRe: OK on Enter, not Return Andrew Merenbach Jun 6, 21:29
mlRe: OK on Enter, not Return Clark Cox Jun 6, 21:40
mlRe: OK on Enter, not Return Andrew Merenbach Jun 6, 21:47
mlRe: OK on Enter, not Return James Walker Jun 6, 21:56
mlRe: OK on Enter, not Return Jim Correia Jun 7, 03:14