Re: Home and end keys and NSTableView, not handled automatically?
Re: Home and end keys and NSTableView, not handled automatically?
- Subject: Re: Home and end keys and NSTableView, not handled automatically?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 14 Sep 2004 13:39:18 -0400
Allan Odgaard (email@hidden) on Tue, Sep 14, 2004 06:22 said:
>On 14. Sep 2004, at 4:46, Sean McBride wrote:
>
>> Firstly, since page up and page down are handled automatically surely
>> home and end could be too. Is this omission a bug?
>
>The second last paragraph at
><http://developer.apple.com/documentation/Cocoa/Conceptual/
>BasicEventHandling/Concepts/KeyEvents.html> mentions: "A case in point
>of a superview handling a keyboard-action message initiated by a
>subview is the way the NSScrollView object handles page-down commands
>[...]"
Thanks for this link! I was surprised to see that NSResponder has so
many methods for so many things: moveWordForward:, deleteToEndOfLine:,
scrollPageDown:, etc. I guess this is smart, as the link above explains,
it means we don't have to deal with physical keys, and different keys can
be mapped to different higher level functions.
But, NSResponder seems to also lack any kind of scrollToTopOfPage:
(equivalent to home key). This seems to be another omission/bug,
wouldn't you say?
>I *think* the reason why the NSScrollView only handles page up/down is,
>that by default these keys only scroll the custom view, they do *not*
>move the cursor
Home and end also should not move the cursor:
<http://developer.apple.com/documentation/UserExperience/Conceptual/
OSXHIGuidelines/XHIGUserInput/chapter_2_section_3.html#//apple_ref/doc/
uid/TP30000361/TPXREF61>
"Pressing the Home key is equivalent to moving the scrollers all the way
to the top and to the left. ... Pressing the Home or End key has no
effect on the location of the insertion point or selected data.
>(a feature which I dislike, and have re-bound my
>Defaultkeybidnings.dict. but anyway...)
Well, to each his own I guess. :) One thing I hate about Windows is how
page up/down move the cursor. I am used to them being shortcuts for the
scrollbar.
>I agree with the other reply that this is most certainly an oversight,
>and you should file an enhancement request -- this post was just my
>shot at explaining why it seems inconsistent...
<rdar://3799975>
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