mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 04:50:54 +00:00
[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:
parent
92fcfeaf5f
commit
01521ad6e7
1 changed files with 7 additions and 0 deletions
|
@ -401,6 +401,13 @@ Class _nspopupbuttonCellClass = 0;
|
|||
// Dismiss the popUp
|
||||
[_cell dismissPopUp];
|
||||
|
||||
{
|
||||
id selectedItem = [self selectedItem];
|
||||
[NSApp sendAction: [selectedItem action]
|
||||
to: [selectedItem target]
|
||||
from: selectedItem];
|
||||
}
|
||||
|
||||
[super sendAction: [self action]
|
||||
to: [self target]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue