Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Accesskey and submit enhancement

by Hero Zzyzzx (Curate)
on Jul 24, 2002 at 16:16 UTC ( #184921=monkdiscuss: print w/replies, xml ) Need Help??

I'm a keyboard-always kind of guy, and I'd like to suggest a minor enhancment- put accesskey attributes on the submit buttons, so that when you create a post you can just hit "alt-s" to submit it, or "alt-p" to preview it. (it's the alt key on windows and linux in all the browsers I use, not sure what it would be on a Mac.)

This is a really nice time-saver, and admins especially (or others who post frequently) would appreciate it. This is also a boon to those few folks who may use screen readers to browse the site.

Example: <input type="submit" name="submit" accesskey="s">

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

Replies are listed 'Best First'.
Re: Accesskey and submit enhancement
by Hero Zzyzzx (Curate) on Jul 25, 2002 at 20:12 UTC

    Some "safe" keys combos for accesskeys appear to be:

    alt-p -- preview
    alt-s -- submit (though konqueror uses that for "settings")
    alt-c -- chatter (for the chatterbox)
    alt-l (konqueror uses this for "location")
    alt-g (mozilla uses this for "go")
    I'll come up with a more complete map in the near term.

    I don't know about punctuation keys. Given the amount of time the monestary as a whole spends in emacs/vim (or equivalent keyboard-driven applications), seems like accesskey stuff should come pretty easily.

    You can use these for anchor tags, too. That'd be cool- to get to newest nodes you just hit "alt-n".

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

      Please test future suggestions in Opera as well. alt-n, alt-p, and alt-z are all used.
Re: Accesskey and submit enhancement
by BorgCopyeditor (Friar) on Jul 24, 2002 at 17:12 UTC

    Wow, I've never seen the accesskey attribute before. Do you know whether there is good browser support for it?

    --Your punctuation skills are insufficient!

      Every "contender" browser I've tried (konqueror, IE, Opera, Netscape 4.x-6.x, Mozilla, I'm kind of a collector) supports it. W3 recommends it's use here. It's safe to say that those that care to use it would probably have a browser that supports it. This works for ANY form element too- The trick is choosing "alt-key" combinations that aren't already taken by the browser or the OS.

      -Any sufficiently advanced technology is
      indistinguishable from doubletalk.

Re: Accesskey and submit enhancement
by Popcorn Dave (Abbot) on Jul 26, 2002 at 17:13 UTC
    Very interesting idea, but I'd suggest you have it for level 5 and higher so that people using it could edit their nodes if they so desired.

    Some people fall from grace. I prefer a running start...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://184921]
Approved by FoxtrotUniform
Front-paged by ajt
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2021-05-16 00:47 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (151 votes). Check out past polls.