Rails accesskeys for left and right arrows? -


does rails support left , right arrow keys in :accesskey attribute?

= link_to "< previous", @vehicle.previous, :accesskey => "left arrow" = link_to "next >", @vehicle.next, :accesskey => "right arrow" 

it's not rails responsibility. need js plugin binds key presses links.

if want add attributes generated <a> tag, use :html_options key

= link_to "< previous", @vehicle.previous, :html_options => {:accesskey => "left arrow"} 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -