# HG changeset patch # User Claus Gittinger # Date 826202282 -3600 # Node ID 08e8adfb783c23a1647df280d3ce8eba3856eea8 # Parent 5816aa12fec82f4fd46d20fbe6a819b24ddb77e1 resources diff -r 5816aa12fec8 -r 08e8adfb783c DialogBox.st --- a/DialogBox.st Thu Mar 07 13:24:44 1996 +0100 +++ b/DialogBox.st Thu Mar 07 13:38:02 1996 +0100 @@ -3712,17 +3712,19 @@ keyPress:aKey x:x y:y "return-key dublicates ok-function if acceptReturnAsOK is true" + + (aKey == #Return) ifTrue:[ - (okButton notNil and:[okButton isReturnButton]) ifTrue:[ - ^ self okPressed - ]. - (abortButton notNil and:[abortButton isReturnButton]) ifTrue:[ - ^ self abortPressed - ]. + (okButton notNil and:[okButton isReturnButton]) ifTrue:[ + ^ self okPressed + ]. + (abortButton notNil and:[abortButton isReturnButton]) ifTrue:[ + ^ self abortPressed + ]. ]. super keyPress:aKey x:x y:y - "Modified: 27.1.1996 / 14:23:16 / cg" + "Modified: 7.3.1996 / 13:15:09 / cg" ! lastFieldLeft @@ -3763,5 +3765,5 @@ !DialogBox class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.52 1996-03-05 00:41:39 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/DialogBox.st,v 1.53 1996-03-07 12:35:23 cg Exp $' ! ! diff -r 5816aa12fec8 -r 08e8adfb783c EditField.st --- a/EditField.st Thu Mar 07 13:24:44 1996 +0100 +++ b/EditField.st Thu Mar 07 13:38:02 1996 +0100 @@ -1233,7 +1233,8 @@ "if keyHandler is defined, pass input; otherwise check for leave keys" - + |leave xCol newOffset newWidth s| @@ -1316,7 +1317,7 @@ self resizeOrScroll. - "Modified: 6.3.1996 / 15:21:49 / cg" + "Modified: 7.3.1996 / 13:16:20 / cg" ! resizeOrScroll @@ -1606,5 +1607,5 @@ !EditField class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.50 1996-03-06 15:21:09 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/EditField.st,v 1.51 1996-03-07 12:36:07 cg Exp $' ! ! diff -r 5816aa12fec8 -r 08e8adfb783c EnterBox2.st --- a/EnterBox2.st Thu Mar 07 13:24:44 1996 +0100 +++ b/EnterBox2.st Thu Mar 07 13:38:02 1996 +0100 @@ -69,7 +69,7 @@ ! version - ^ '$Header: /cvs/stx/stx/libwidg/EnterBox2.st,v 1.14 1996-02-11 09:54:43 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/EnterBox2.st,v 1.15 1996-03-07 12:36:37 cg Exp $' ! ! !EnterBox2 methodsFor:'accessing'! @@ -138,10 +138,14 @@ keyPress:aKey x:x y:y "return-key dublicates ok-function if acceptReturnAsOK is true" + + acceptReturnAsOK ifTrue:[ - (aKey == #Return) ifTrue:[^ self ok2Pressed] + (aKey == #Return) ifTrue:[^ self ok2Pressed] ]. super keyPress:aKey x:x y:y + + "Modified: 7.3.1996 / 13:16:37 / cg" ! ok2Pressed diff -r 5816aa12fec8 -r 08e8adfb783c OptBox.st --- a/OptBox.st Thu Mar 07 13:24:44 1996 +0100 +++ b/OptBox.st Thu Mar 07 13:38:02 1996 +0100 @@ -252,18 +252,22 @@ keyPress:aKey x:x y:y "return-key dublicates ok-function if acceptReturnAsOK is true" + + |action| defaultButtonIndex notNil ifTrue:[ - (aKey == #Return) ifTrue:[ - self hide. - action := actions at:defaultButtonIndex. - action notNil ifTrue:[ - action value - ] - ] + (aKey == #Return) ifTrue:[ + self hide. + action := actions at:defaultButtonIndex. + action notNil ifTrue:[ + action value + ] + ] ]. super keyPress:aKey x:x y:y + + "Modified: 7.3.1996 / 13:17:36 / cg" ! ! !OptionBox methodsFor:'initializing'! @@ -383,5 +387,5 @@ !OptionBox class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/Attic/OptBox.st,v 1.27 1996-02-21 00:03:33 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/Attic/OptBox.st,v 1.28 1996-03-07 12:37:19 cg Exp $' ! ! diff -r 5816aa12fec8 -r 08e8adfb783c OptionBox.st --- a/OptionBox.st Thu Mar 07 13:24:44 1996 +0100 +++ b/OptionBox.st Thu Mar 07 13:38:02 1996 +0100 @@ -252,18 +252,22 @@ keyPress:aKey x:x y:y "return-key dublicates ok-function if acceptReturnAsOK is true" + + |action| defaultButtonIndex notNil ifTrue:[ - (aKey == #Return) ifTrue:[ - self hide. - action := actions at:defaultButtonIndex. - action notNil ifTrue:[ - action value - ] - ] + (aKey == #Return) ifTrue:[ + self hide. + action := actions at:defaultButtonIndex. + action notNil ifTrue:[ + action value + ] + ] ]. super keyPress:aKey x:x y:y + + "Modified: 7.3.1996 / 13:17:36 / cg" ! ! !OptionBox methodsFor:'initializing'! @@ -383,5 +387,5 @@ !OptionBox class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/OptionBox.st,v 1.27 1996-02-21 00:03:33 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/OptionBox.st,v 1.28 1996-03-07 12:37:19 cg Exp $' ! ! diff -r 5816aa12fec8 -r 08e8adfb783c SelListV.st --- a/SelListV.st Thu Mar 07 13:24:44 1996 +0100 +++ b/SelListV.st Thu Mar 07 13:38:02 1996 +0100 @@ -1708,7 +1708,8 @@ keyPress:key x:x y:y "handle keyboard input" - + |index searchIndex "{Class: SmallInteger}" @@ -1820,7 +1821,7 @@ ]. ^ super keyPress:key x:x y:y - "Modified: 7.2.1996 / 19:20:18 / cg" + "Modified: 7.3.1996 / 13:18:46 / cg" ! sizeChanged:how @@ -2699,5 +2700,5 @@ !SelectionInListView class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/Attic/SelListV.st,v 1.60 1996-03-01 18:52:03 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/Attic/SelListV.st,v 1.61 1996-03-07 12:38:02 cg Exp $' ! ! diff -r 5816aa12fec8 -r 08e8adfb783c SelectionInListView.st --- a/SelectionInListView.st Thu Mar 07 13:24:44 1996 +0100 +++ b/SelectionInListView.st Thu Mar 07 13:38:02 1996 +0100 @@ -1708,7 +1708,8 @@ keyPress:key x:x y:y "handle keyboard input" - + |index searchIndex "{Class: SmallInteger}" @@ -1820,7 +1821,7 @@ ]. ^ super keyPress:key x:x y:y - "Modified: 7.2.1996 / 19:20:18 / cg" + "Modified: 7.3.1996 / 13:18:46 / cg" ! sizeChanged:how @@ -2699,5 +2700,5 @@ !SelectionInListView class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/SelectionInListView.st,v 1.60 1996-03-01 18:52:03 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/SelectionInListView.st,v 1.61 1996-03-07 12:38:02 cg Exp $' ! !