Update of /cvsroot/actionstep/actionstep/src/org/actionstep
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8512/src/org/actionstep
Modified Files:
NSMatrix.as
Log Message:
now if no next (or previous) cells are available, matrix will resign as firstResponder
Index: NSMatrix.as
===================================================================
RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSMatrix.as,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** NSMatrix.as 20 Jul 2005 15:14:18 -0000 1.25
--- NSMatrix.as 20 Jul 2005 16:40:44 -0000 1.26
***************
*** 2462,2475 ****
if (mods & NSEvent.NSShiftKeyMask) // go backwards
{
! selectPreviousSelectableCellAfterRowColumn(m_selcell_row,
! m_selcell_column);
}
else
{
! selectNextSelectableCellAfterRowColumn(m_selcell_row,
! m_selcell_column);
}
-
- return; // MUST have this (to indicate the key was handled)
}
--- 2462,2479 ----
if (mods & NSEvent.NSShiftKeyMask) // go backwards
{
! if (selectPreviousSelectableCellAfterRowColumn(m_selcell_row,
! m_selcell_column))
! {
! return; // MUST have this (to indicate the key was handled)
! }
}
else
{
! if (selectNextSelectableCellAfterRowColumn(m_selcell_row,
! m_selcell_column))
! {
! return; // MUST have this (to indicate the key was handled)
! }
}
}
|