From: Richard K. <ric...@us...> - 2005-07-18 03:53:16
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28598 Modified Files: NSWindow.as Log Message: add keydown control Index: NSWindow.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSWindow.as,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** NSWindow.as 18 Jul 2005 01:43:43 -0000 1.24 --- NSWindow.as 18 Jul 2005 03:53:04 -0000 1.25 *************** *** 486,489 **** --- 486,507 ---- } } + + public function keyDown(event:NSEvent) { + if (event.keyCode == NSTabCharacter) { + if (event.modifierFlags & NSEvent.NSShiftKeyMask) { + selectPreviousKeyView(this); + } else { + selectNextKeyView(this); + } + return; + } + if (event.keyCode == Key.ESCAPE) { + if (m_app.modalWindow() == this) { + m_app.stopModal(); //! Should be abortModal()? + } + return; + } + //! performKeyEquivalent + } // Keyboard interface control |