Le 2 févr. 06 à 20:08, Andreas Höschler a écrit :

Hi all,

while editing the text field of a NSComboBox I would like to pop up the combo box (in order to view the items) via a key stroke without needing to click on the arrow with the mouse. I assume teh OPENSTEP spec does not offer/include this feature. Where would I hook this in?

Ctrl-Space might be a good stroke for this but I don't know which keyDown: method I have to overwrite for this

Hi Andreas,

On Mac OS X, the popup key is 'down arrow' and the menu closing key is 'esc'. That's for both combo boxes and popup menus.

In GNUstep NSComboBoxCell, we should implement NSResponder methods like -moveDown: to handle such popup possibility.

If you want another custom key stroke specific to your application, you have to override -keyDown: method unless NSResponder already provides a dedicated method.

Quentin.

--
Quentin Mathé

_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to