Re: Removing focus from a textbox
Re: Removing focus from a textbox
- Subject: Re: Removing focus from a textbox
- From: Severin Kurpiers <email@hidden>
- Date: Wed, 10 Nov 2004 08:57:46 +0100
Regular key shortcuts like Command + Q should work even if a control
has the focus. But I assume you want to handle key events that are not
the regular shortcuts, right? Probably you can try to set your window
to be the first responder using something like:
[window makeFirstResponder:window];
It's just an idea, it needs of course some fine-tuning but it should
take away the focus from your text box (NSTextField? NSTextView?)
Bye,
Severin Kurpiers
Verek Ltd.
On 10. Nov 2004, at 08:33, Kodex wrote:
Hi Everyone,
I have a small app that has a bunch of key shortcuts
in it. The problem i am having is that the user has an
activated text box so that the key shortcuts wont
accept the input. I have a button that when pressed i
want to take the cursor focus away from that textbox.
I am already disabling the select and edit features of
the text box when the user presses the button. Is
there a way to draw focus away from that box upon and
action so that the app will accept key shortcuts? Thanks!!!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden