Closed Bug 175620 Opened 22 years ago Closed 17 years ago

make Home and End keys work in text fields and textareas on Mac OS X

Categories

(Core :: Layout: Form Controls, defect, P3)

PowerPC
macOS
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: mozilla.org, Assigned: john)

References

Details

It would be nice if you could use the Home and End Keys to move to the beginning
or end of a line of text in text fields and textareas.
Home and End keys works as expected in my case, mozilla 1.2b, W98
Be more specific please.
Home and End do not work in text form controls (input type=text and textarea)
using Mozilla 1.2b (2002101612) on Mac OS X 10.2.1. According to comment 2, they
work on other platforms.
Severity: enhancement → normal
Summary: make Home and End keys work in text fields and textareas → make Home and End keys work in text fields and textareas on Mac OS X
Priority: -- → P3
Target Milestone: --- → mozilla1.4alpha
Hi,

I see this behaviour and it'd be really nice if home and end were to behave as
exptect. It's a real pain the way it is.

Any chance this can be made to happen?

Max.
*** Bug 188602 has been marked as a duplicate of this bug. ***
the "pg up" and "pg dn" keys need to be made functional, too.  james: can update
the summary?
ds(In reply to comment #5)
> the "pg up" and "pg dn" keys need to be made functional, too.  james: can update
> the summary?

pgup and pgdown WFM Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.8a) Gecko/20040517 Firefox/0.8.0+

Home and End still busted, though.

-Z
Any news on that ? Problem persists in Firefox 1.0 !
Target Milestone: mozilla1.4alpha → ---
I am using 1.5 Beta 1 on Windows XP SP2. Occasionally I find that the cursor
navigation keys (Home, End and the arrow keys) will not work in a text field
such as the one I am typing in now. Switching to another application and then
back resolved the problem earlier today.
(In reply to comment #8)
> I am using 1.5 Beta 1 on Windows XP SP2. Occasionally I find that the cursor
> navigation keys (Home, End and the arrow keys) will not work in a text field
> such as the one I am typing in now. Switching to another application and then
> back resolved the problem earlier today.

I think you'll find that opening another window, clicking in some text field,
then closing it, will make the original window's text fields work again.
*** Bug 188602 has been marked as a duplicate of this bug. ***
Is there any update for fixing this bug?  Microsoft Office has corrected the use of the Home and End keys in its software for OSX, so it is possible to reassign use of the keys within the software being used.  
In native (single-line) text fields on Mac OS X, Home and End do nothing.  In multi-line text fields, Home and End scroll the view to the top/bottom but do not move the cursor.

Thus Gecko actually is working correctly according to platform expectations in input[text] and textarea widgets (surprise, surprise!), so this bug is really INVALID.
i understand smokey's point in comment 12, but regardless of apple HIG, the way things currently "work" is quite far from ideal.  in native text fields on OSX, <Cmd>-<left> and <Cmd>-<right> do what users of other platforms expect <Home> and <End> to do.  unfortunately, firefox is using these key combinations for history traversal :(

i don't claim to know the best solution, but we need to figure out something to allow people to both navigate history and go to the beginning and end of text input lines.
(In reply to comment #13)
> i don't claim to know the best solution, but we need to figure out something to
> allow people to both navigate history and go to the beginning and end of text
> input lines.

This is already the case; if a text field is focused, the text behavior is used; otherwise, the history traversal behavior is used (and there additional non-conflicting shortcuts for the latter, in case you want to traverse history while typing in a text field).

The behavior of Home and End in text fields in Gecko is correct per the platform conventions on Mac OS X, so INVALID.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
(In reply to comment #14)
> there additional
> non-conflicting shortcuts for the latter, in case you want to traverse history
> while typing in a text field

namely?

tia
if there are any, they aren't listed here:
http://www.mozilla.org/support/firefox/keyboard

reopening so this doesn't get lost
Status: VERIFIED → REOPENED
Resolution: INVALID → ---
The ones listed in your History menu, namely Cmd-[ and Cmd-]  

Someone should fix that web page, but that's a website bug, not this bug.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
thanks, smokey :)  i filed bug 38301 to track the website bug.
You need to log in before you can comment on or make changes to this bug.