The arrow keys change focus to the Subject: field instead of moving the caret around.
On keyDown, GMail calls window.focus(), which focuses the main frame, which kills the selection in the editable frame. Why are they calling window.focus()?
GMail is Google.
Yes, I'm running into this problem too.
Pressing "< " (home) or ">" (end) places focus out of the message body field and puts the caret in the TO field.
Same thing happens when pressing ctrl-"<" or ctrl-">" in attempting to move the caret to the start or end of line. Very annoying...
*** Bug 10988 has been marked as a duplicate of this bug. ***
*** Bug 11298 has been marked as a duplicate of this bug. ***
Confirmed that the arrow key problem goes away when I comment out the call to frame->focus() in KJSWindow::focus.
Confirmed that 10988 works correctly when I comment out the call to
frame->focus() in KJSWindow::focus.
Ditto for 11298.
This is in radar as <rdar://problem/4810960>
I think this is a WebKit bug. Repro here:
Inside the iframe, key events like 'a' and 'b' only trigger the inner event handler. But arrow keys and Cmd-A trigger both error handlers. This is why you're seeing that behavior in Gmail.