Re: becomeFirstResponder and keyDown

2009-10-21 Thread Quincey Morris
On Oct 21, 2009, at 09:17, gMail.com wrote: I would like to detect whether the 'e' key is pressed every time I click on an NSView. If the view is already the firstResponder, I can quite memorize that key pressed when keyDown and reuse it when mouseDown. Then I erase it when keyUp. But if t

becomeFirstResponder and keyDown

2009-10-21 Thread gMail.com
Hi, I would like to detect whether the 'e' key is pressed every time I click on an NSView. If the view is already the firstResponder, I can quite memorize that key pressed when keyDown and reuse it when mouseDown. Then I erase it when keyUp. But if the user presses the 'e' key when the firstRespond