🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
4 messages
4 total messages Started by Daniel L Grillo Sat, 05 Sep 1992 02:51
setting a button key to be ESC
#752
Author: Daniel L Grillo
Date: Sat, 05 Sep 1992 02:51
11 lines
678 bytes
In the IB inspector, I'd like to set a button's key equivalent to be ESC.
I can't get it to work.

Any ideas?




--
 Dan Grillo   grio@cs.psu.edu   [NeXTmail, PrivateMail, MIME welcome]
Re: setting a button key to be ESC
#785
Author: Simson L. Garfinkel
Date: Sun, 06 Sep 1992 14:55
15 lines
1034 bytes
In article <Bu33xu.7x3@cs.psu.edu> grio@postscript.cs.psu.edu (Daniel L Grillo)  
writes:
> 
> In the IB inspector, I'd like to set a button's key equivalent to be ESC.
> I can't get it to work.
> 

Since key equivalents can only be command keys, and not the ESC key, you're out  
of luck, unless you want the button to be command-ESC.

You could subclass the Window object, override the keyDown: method, and turn  
ESC into some command- key.
-- 

................................................................simson
Re: setting a button key to be ESC
#792
Author: Daniel L Grillo
Date: Sun, 06 Sep 1992 19:29
22 lines
1379 bytes
In article <1992Sep6.145546.7044@next.cambridge.ma.us> simsong@next.cambridge.ma.us writes:
>In article <Bu33xu.7x3@cs.psu.edu> grio@postscript.cs.psu.edu (Daniel L Grillo)  
>writes:
>> 
>> In the IB inspector, I'd like to set a button's key equivalent to be ESC.
>> I can't get it to work.
>> 
>
>Since key equivalents can only be command keys, and not the ESC key, you're out  
>of luck, unless you want the button to be command-ESC.
>
>You could subclass the Window object, override the keyDown: method, and turn  
>ESC into some command- key.

I should have been more explict.  A button in a _Panel_ can have a key
equivalent that is not a command key.   Keys like "d" and "." work fine.
I was hoping there was a way to use ESC, without subclassing Panel.


			--Dan
-- 
 Dan Grillo   grio@cs.psu.edu   [NeXTmail, PrivateMail, MIME welcome]
Re: setting a button key to be ESC
#797
Author: Eric P. Scott
Date: Mon, 07 Sep 1992 02:31
20 lines
1172 bytes
In article <Bu68tK.37L@cs.psu.edu> grio@colossus.cs.psu.edu
	(Daniel L Grillo) writes:
>I was hoping there was a way to use ESC, without subclassing Panel.

From Chapter 3 of the UI Guidelines:

	For UNIX compatibility, the Esc key is used to complete
	file names (as described in the following section).  It
	should not be used any other way in the user interface.
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

They tell you not to do this.  They've made it difficult for you
to circumvent.  Must you be so obstinate?

					-=EPS=-
-- 
If I fall off this cliff, will it hurt?
(Yes, it will.)
Why do you think they erected a fence there?
(Because some people don't read.)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads