mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
Pop up the list of a combo box when the user presses the down arrow
key. This gives users full keyboard control for NSComboBox. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31120 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26019a4955
commit
d4e85d8f8d
3 changed files with 31 additions and 0 deletions
|
@ -1883,6 +1883,7 @@ static inline NSRect buttonCellFrameFromRect(NSRect cellRect)
|
|||
NSWindow *cvWindow = [controlView window];
|
||||
NSRect buttonRect = buttonCellFrameFromRect(cellFrame);
|
||||
|
||||
_control_view = controlView;
|
||||
[controlView lockFocus];
|
||||
[_buttonCell highlight: YES
|
||||
withFrame: buttonRect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue