From: Richard K. <ric...@us...> - 2005-07-06 17:27:59
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25891 Modified Files: NSApplication.as Log Message: on mouse down set key window and bring to front Index: NSApplication.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSApplication.as,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** NSApplication.as 24 Jun 2005 02:08:08 -0000 1.17 --- NSApplication.as 6 Jul 2005 17:27:51 -0000 1.18 *************** *** 166,175 **** ASFieldEditor.instance().regainFocus(); } - /* // updates are now done in ASRootWindowView - if (event.window == undefined) { - updateWindowsIfNeeded(); - } else { - event.window.displayIfNeeded(); - }*/ return; } --- 166,169 ---- *************** *** 177,180 **** --- 171,177 ---- //! What else to do here? try { + if (event.type == NSEvent.NSLeftMouseDown) { + m_currentEvent.window.makeKeyAndOrderFront(); + } m_currentEvent.window.sendEvent(m_currentEvent); } catch (e:Error) { *************** *** 183,192 **** if (event.type == NSEvent.NSLeftMouseUp && ASFieldEditor.instance().isEditing()) { ASFieldEditor.instance().regainFocus(); ! }/* // updates are now done in ASRootWindowView ! if (event.window == undefined) { ! updateWindowsIfNeeded(); ! } else { ! event.window.displayIfNeeded(); ! }*/ } --- 180,184 ---- if (event.type == NSEvent.NSLeftMouseUp && ASFieldEditor.instance().isEditing()) { ASFieldEditor.instance().regainFocus(); ! } } |