[Plib-cvs] plib/src/pui puComboBox.cxx,1.14,1.15 puGroup.cxx,1.27,1.28 puInput.cxx,1.33,1.34 puLarge
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2004-02-23 04:30:11
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11363/plib/src/pui Modified Files: puComboBox.cxx puGroup.cxx puInput.cxx puLargeInput.cxx puSelectBox.cxx Log Message: Make PUI ignore key-up events in puKeyboard. Index: puComboBox.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puComboBox.cxx,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- puComboBox.cxx 21 Sep 2002 17:47:09 -0000 1.14 +++ puComboBox.cxx 23 Feb 2004 04:16:52 -0000 1.15 @@ -192,7 +192,7 @@ int puComboBox::checkKey ( int key, int updown ) { - if ( ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) return FALSE ; switch ( key ) Index: puGroup.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puGroup.cxx,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- puGroup.cxx 16 Dec 2003 23:14:18 -0000 1.27 +++ puGroup.cxx 23 Feb 2004 04:16:52 -0000 1.28 @@ -149,7 +149,7 @@ int puGroup::checkKey ( int key, int updown ) { - if ( dlist == NULL || ! isVisible () || ! isActive () ) + if ( updown == PU_UP || dlist == NULL || ! isVisible () || ! isActive () ) return FALSE ; puObject *bo ; Index: puInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puInput.cxx,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- puInput.cxx 12 Nov 2003 19:02:02 -0000 1.33 +++ puInput.cxx 23 Feb 2004 04:16:52 -0000 1.34 @@ -269,9 +269,9 @@ } -int puInput::checkKey ( int key, int /* updown */ ) +int puInput::checkKey ( int key, int updown ) { - if ( ! isAcceptingInput() || ! isActive () || ! isVisible () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! isAcceptingInput() || ! isActive () || ! isVisible () || ( window != puGetWindow () ) ) return FALSE ; if ( puActiveWidget() && ( this != puActiveWidget() ) ) Index: puLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- puLargeInput.cxx 28 Apr 2003 20:28:28 -0000 1.47 +++ puLargeInput.cxx 23 Feb 2004 04:16:52 -0000 1.48 @@ -844,9 +844,9 @@ lowlight () ; } -int puLargeInput::checkKey ( int key, int /* updown */ ) +int puLargeInput::checkKey ( int key, int updown ) { - if ( !isAcceptingInput () || !isActive () || !isVisible () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || !isAcceptingInput () || !isActive () || !isVisible () || ( window != puGetWindow () ) ) return FALSE ; if ( puActiveWidget() && ( this != puActiveWidget() ) ) Index: puSelectBox.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puSelectBox.cxx,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- puSelectBox.cxx 2 Sep 2002 06:05:46 -0000 1.8 +++ puSelectBox.cxx 23 Feb 2004 04:16:52 -0000 1.9 @@ -114,7 +114,7 @@ int puSelectBox::checkKey ( int key, int updown ) { - if ( ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) + if ( updown == PU_UP || ! input -> isAcceptingInput () || ! isVisible () || ! isActive () || ( window != puGetWindow () ) ) return FALSE ; switch ( key ) |