I haven't investigated if it is possible to add keyboard shortcuts by using JavaScript. If that's possible, then it would be possible to have a set of prepared hotkey-adders depending on the browser and language the user uses.

I personally believe... err, no: I'm quite sure, a priori, that it's possible. They do every sort of freaking thing with JS! ;) But more precisely, I suspect that at least some amount of JS would be required to go beyond the bare functionality of the accesskey attribute: AIUI it only applies to some elements to the effect of simulating, say, a click on them; which is fine: the most notable example being the activation of a link or the selection of a checkbox. But one may want the pressing of a hotkey to be associated with e.g. the appropriate positioning of a box (a div) or somesuch, as in the examples I mention hereafter.

The one site I'm aware of which uses hotkeys (https://banking.postbank.de) uses Alt-1 etc. as hotkeys, so I assume there is no better cross-browser, cross-language way.

You should really try the aforementioned GR: I used too to read it mostly with the mouse. (Incidentally I think that amongst the many fundamentally useless "innovations" of modern popular pc machinery, one of the few actually useful ones is the mouse wheel.) But then I had that bed-Eee-mousepad difficulties and I started using keyboad shortcuts: you have e.g. "j" and "k" for next and previous article respectively, and "v" to open an article in a separate window/tab. If you're in a collapsed view, articles get open in sequence and positioned at the top of the view window... it's much like a specific client running on your computer. (As of the OP, I'm not asking PM that much...) I don't know how much of that is portable, but I'm confident that hardly can Google have made it incompatible with most major browsers...

--
If you can't understand the incipit, then please check the IPB Campaign.

In reply to Re^2: Better keyboard-driven navigation, any? by blazar
in thread Better keyboard-driven navigation, any? by blazar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.