diff --git a/ChangeLog b/ChangeLog index c98f48e43..76ba93928 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,14 +1,20 @@ +2007-01-19 Fred Kiefer + + * Source/NSPopUpButton.m (-keyDown:): Handle selection of first + entry correctly. Patch by Phillipe Roussel + 2007-01-19 Richard Frith-Macdoanld * Source/NSDocument.m: fix include path (bug #18829) 2007-01-18 Adam Fedor - * Source/NSBitmapImageRep+PNM.m ([NSBitmapImageRep -_initBitmapFromPNM:errorMessage:]): Check for invalid image size. + * Source/NSBitmapImageRep+PNM.m ([NSBitmapImageRep + -_initBitmapFromPNM:errorMessage:]): Check for invalid image size. 2007-01-18 Fred Kiefer - * Source/NSCell.m (-setFloatingPointFormat:left:right): Basic + * Source/NSCell.m (-setFloatingPointFormat:left:right:): Basic implementation. * Source/NSCell.m (-setUpFieldEditorAttributes:, _setupTextWithFrame:inView:editor:delegate:range:, endEditing:, diff --git a/Source/NSPopUpButton.m b/Source/NSPopUpButton.m index eef9c6db6..b3f805693 100644 --- a/Source/NSPopUpButton.m +++ b/Source/NSPopUpButton.m @@ -462,7 +462,7 @@ this to return nil to indicate that we have no context menu. else { selectedIndex = [menuView highlightedItemIndex]; - if (selectedIndex > 0) + if (selectedIndex >= 0) { [[_cell menu] performActionForItemAtIndex: selectedIndex]; }