html - Set accesskey to keyboard numeric pad keys with jQuery -



html - Set accesskey to keyboard numeric pad keys with jQuery -

i'm developing web app html5 , jquery 1.10. i'm using accesskey attribute in inputs , links improve navigation.

actually have code:

$("#linktabcost").attr("accesskey", "1"); $("#linktabcapture").attr("accesskey", "2"); $("#linktabinvoice").attr("accesskey", "3");

with code, accesskeys working follows:

my question is:

how can set accesskey numbers of keyboard numeric pad jquery?

i able solve issue shortcut.js library , adding numeric pad keys (97,98,99...) library special_keys array.

var special_keys = { 'numpad_1': 97, 'numpad_2': 98, 'numpad_3': 99, 'numpad_4': 100, 'numpad_5': 101, 'esc':27, 'escape':27, 'tab':9, 'space':32, 'return':13, 'enter':13, 'backspace':8 ... }

i used this post solve problem

jquery html html5 keyboard-shortcuts hotkeys

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -