Bug 9098 - Keyboard shortcuts don't work in GMail until you click in the page
Summary: Keyboard shortcuts don't work in GMail until you click in the page
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://mail.google.com/mail/
Keywords: GoogleBug, InRadar
Depends on:
Blocks:
 
Reported: 2006-05-24 14:58 PDT by Alisdair McDiarmid
Modified: 2008-11-18 16:50 PST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alisdair McDiarmid 2006-05-24 14:58:18 PDT
On first loading a GMail page, the keyboard shortcuts (e.g. j, k) don't work. This can be solved by clicking in the page.

When a new page is loaded, for example by opening a message, the focus is lost again (sometimes... sorry, but I can't work out exactly when). Clicking in the page makes the shortcuts respond.

This bug exists both in 417.9.3 and the latest nightly build.
Comment 1 Joost de Valk (AlthA) 2006-07-12 10:20:41 PDT
Adding GoogleBug keyword in one big change.
Comment 2 Gregg Thomason 2006-10-28 19:17:21 PDT
(In reply to comment #0)
> On first loading a GMail page, the keyboard shortcuts (e.g. j, k) don't work.
> This can be solved by clicking in the page.
> 
> When a new page is loaded, for example by opening a message, the focus is lost
> again (sometimes... sorry, but I can't work out exactly when). Clicking in the
> page makes the shortcuts respond.
> 
> This bug exists both in 417.9.3 and the latest nightly build.
> 
This isn't affecting me for nightly revision 17397.
Comment 3 Adam Hansen 2007-07-11 08:58:16 PDT
Works for me when using Safari 2.0.4 (419.3), Safari 3.0.2 (522.12), and WebKit r24182.
Comment 4 Robert Blaut 2008-02-10 15:09:07 PST
I can confirm this bug working with a new UI of Gmail: http://mail.google.com/mail/?&ui=2

The bug isn't visible with old UI: http://mail.google.com/mail/?&ui=1

I think the problem is an Evangelism bug.
Comment 5 Alexey Proskuryakov 2008-02-10 23:20:56 PST
I'm a bit confused. With shipping Mac Safari 3.0.4 and "new" GMail, I cannot get "j" or "k" work at all - what are they supposed to do?

Also, what evidence do we have to believe that this is an evangelism bug?
Comment 6 mitz 2008-02-10 23:29:09 PST
(In reply to comment #5)
> I'm a bit confused. With shipping Mac Safari 3.0.4 and "new" GMail, I cannot
> get "j" or "k" work at all - what are they supposed to do?

Keyboard shortcuts in Gmail are off by default. You can turn them on in Settings > General > Keyboard shortcuts. K and J move to the next or previous conversation.
Comment 7 Robert Blaut 2008-02-10 23:35:52 PST
(In reply to comment #5)
> I'm a bit confused. With shipping Mac Safari 3.0.4 and "new" GMail, I cannot
> get "j" or "k" work at all - what are they supposed to do?

http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=6594

> Also, what evidence do we have to believe that this is an evangelism bug?

The site works with old UI, doesn't work with new UI. Try to change UA to Safari 2.0 and compare.

Comment 8 Adam Roben (:aroben) 2008-02-11 07:25:32 PST
(In reply to comment #4)
> I can confirm this bug working with a new UI of Gmail:
> http://mail.google.com/mail/?&ui=2
> 
> The bug isn't visible with old UI: http://mail.google.com/mail/?&ui=1

I can reproduce the bug with both versions of the GMail UI using Safari 3.0.4 on OS X 10.5.1:

1. Ensure keyboard shortcuts are enabled in your GMail preferences (Settings > General > Keyboard shortcuts)
2. Type http://mail.google.com/ in the URL field and press Enter
3. Type 'j'

The arrow pointing to the first message should move down to the second message, but doesn't.

My guess is that this is caused by when Safari/WebKit sends a focus event to the window/document compared to other browsers.
Comment 9 Adam Roben (:aroben) 2008-02-11 07:26:23 PST
<rdar://problem/5734947>
Comment 10 David Jones 2008-11-18 16:50:31 PST
There is an additional case where this bug presents in the Gmail interface.

Steps to reproduce (with keyboard shortcuts enabled):
1. Open a message in reading view (click the message in the inbox)
2. Ensure the page is focused and that keypresses are observed - n/p should move through the conversation.
3. Press '.' (period) to open the "More Actions" dropdown list.
4. Use arrow keys or first letter to highlight a label or action.
5. Press return to activate that action or label. The "More Actions" list closes.
6. The page has now lost focus - n/p will not move through the conversation, 'y' or 'e' will not archive.
7. Click the page to restore focus.
8. Keypresses are now observed again: n/p will cycle through the conversation, 'y' or 'e' will archive.