Re: NSTextMovement
Re: NSTextMovement
- Subject: Re: NSTextMovement
- From: Greg Titus <email@hidden>
- Date: Sun, 10 Jul 2005 11:43:28 -0700
On Jul 10, 2005, at 10:37 AM, Tony Cate wrote:
What I want is NSBackReturnTextMovement - The Shift-Return key was
pressed. Currently NSText ignores the shift key and sends
NSReturnTextMovement. I want this for a tableview. When users press
Enter the equivalent cell is selected in the next row. When Shift-
Return is entered I want the equivalent cell selected in the
previous row.
I'm not even sure what to try overriding. Any hints?
You'll need to look for NSReturnTextMovement, and if you get it, then
do an:
if ([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask)
to see if the shift key was held or not.
Hope this helps,
- Greg
_______________________________________________
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