[NSPopUpButton -keyDown:] add code to send the selected item action to its

target (this enables key control of an NSPopUpButton configured as an
pull-down list)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10700 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2001-08-13 14:34:35 +00:00
parent 92fcfeaf5f
commit 01521ad6e7

View file

@ -401,6 +401,13 @@ Class _nspopupbuttonCellClass = 0;
// Dismiss the popUp // Dismiss the popUp
[_cell dismissPopUp]; [_cell dismissPopUp];
{
id selectedItem = [self selectedItem];
[NSApp sendAction: [selectedItem action]
to: [selectedItem target]
from: selectedItem];
}
[super sendAction: [self action] [super sendAction: [self action]
to: [self target]]; to: [self target]];
} }