Carlo
2009-04-03 12:57:35 UTC
A few days ago somebody (Sven, as far as I remember), mentioned the
use of esc key to close a window.
I have to confess that I had never heard of it, so I would like to
know if on the Mac this has really become a standard/expected feature.
And if that is the case, will the following code be OK in the keydown
event of a window?
if key = chr(27) then
self.close
Return true
end if
Thanks,
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
use of esc key to close a window.
I have to confess that I had never heard of it, so I would like to
know if on the Mac this has really become a standard/expected feature.
And if that is the case, will the following code be OK in the keydown
event of a window?
if key = chr(27) then
self.close
Return true
end if
Thanks,
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>