Pass a list of decoders.
onKeyDown [ enter TheyHitEnterDoSomething, left DoSomeOtherThing ]Use with onKeyDown to succeed when user hits the tab key.
onKeyDown [ tab Tab ]Use with onKeyDown to succeed when user hits the tab key while hitting shift.
onKeyDown [ tabBack GoBack ]Use with onKeyDown to succeed when user hits the up arrow key.
onKeyDown [ up Up ]Use with onKeyDown to succeed when user hits the right arrow key.
onKeyDown [ right Right ]Use with onKeyDown to succeed when user hits the down arrow key.
onKeyDown [ down Down ]Use with onKeyDown to succeed when user hits the left arrow key.
onKeyDown [ left Left ]Use with onKeyDown to succeed when user hits the Enter key.
onKeyDown [ enter TheyHitEnterDoSomething ]Use with onKeyDown to succeed when user hits the spacebar.
onKeyDown [ space SpaceBar ]Use with onKeyDown to succeed when user hits esc.
onKeyDown [ escape CloseModal ]
Add or remove an element from the normal flow of tabbable/focusable elements.
tabbable Truewill set the tabindex to 0, andtabbable Falsewill set the tabindex to -1.You may use Html.Attributes.tabindex if you need to control the tab order more explicitly, but you may want to restructure your HTML to match how you want users to interact with it instead.