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
Post a Comment