Webapp Keyboard Focus Issues

closeThis post was published 11 years 4 months 12 days ago. A number of changes have been made to the site since then, so please contact me if anything is broken or seems wrong.

I’ve found a pretty frequent problem with keyboard-enabled webapps. Gmail, Google Reader, Remember The Milk, and a whole bunch of other services (Google Calendar, for instance) all fit into this category.

It seems that nearly all keyboard shortcut-enabled webapps have one big annoyance in common (no, not AJAX): The shortcuts lose focus in certain scenarios.

The three apps I’m most concerned with are, of course, Gmail, Google Reader, and RTM. I do use them the most, after all.

I’ve found tab-switching to be the number one cause of focus switching. Keyboard entry is sent to the browser chrome or something, rather than the page. I’ve noticed that switching tabs with the keyboard (using Firefox’s Ctrl+Tab and Ctrl+Shift+Tab keystrokes) is much less likely to cause a problem than clicking the other tab.

At this point, I should mention that I haven’t checked other browsers for trouble; I’ve only been observing Firefox 2.0.0.x.

Yet, the problem does not seem to be webapp-specific. I have trouble with Home, Page Down, Page Up, and End when switching tabs, too. I’ll switch to a new tab, hit Home or End (usually), and nothing will happen. I go back to the previous tab and find that the keypress was actioned there. Harrumph.

I really have no idea whose problem this is — app developers’ or Mozilla’s — but it’s certainly annoying. When I’m trying to copy data from one site to another, without a clean import/export interface, I would prefer to not have to click in the page to get the shortcuts to work again.

Anybody have a definitive answer as to why this happens?

dgw

I am an avid technology and software user, in addition to being reasonably well-versed in CSS, JavaScript, HTML, PHP, Python, and (though it still scares me) Perl. Aside from my technological tendencies, I am also a theatre technician, sound designer, violinist, singer, and actor.

One Comment:

  1. Brandon Mintern

    I’m with you on this problem. In fact, I came across your post because it was the top search result for

    gmail loses keyboard focus

    in Google. Perhaps this issue will be improved in Firefox 3.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail (or subscribe without commenting)

Comments are subject to moderation, and are licensed for display in perpetuity once posted. Learn more.