discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popping up NSComboBox via key stroke


From: Quentin Mathé
Subject: Re: Popping up NSComboBox via key stroke
Date: Sun, 12 Feb 2006 03:23:52 +0100

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é


reply via email to

[Prev in Thread] Current Thread [Next in Thread]