Handle the keyboard selection of first entry in popup. Patch by Phillipe

Roussel <p.o.roussel@free.fr>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24386 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-01-19 13:01:38 +00:00
parent 30fd0153be
commit 8abc5f845a
2 changed files with 9 additions and 3 deletions

View file

@ -1,14 +1,20 @@
2007-01-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopUpButton.m (-keyDown:): Handle selection of first
entry correctly. Patch by Phillipe Roussel <p.o.roussel@free.fr>
2007-01-19 Richard Frith-Macdoanld <rfm@gnu.org>
* Source/NSDocument.m: fix include path (bug #18829)
2007-01-18 Adam Fedor <fedor@gnu.org>
* 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 <FredKiefer@gmx.de>
* 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:,

View file

@ -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];
}