Skip to content

mikbe/SaneEnterKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Sane Enter Key ###Version: 0.1.0

Dependencies
jQuery

Author Mike Bethany
Web: http://mikebethany.com
Source: https://github.com/mikbe/SaneEnterKey

###Description Makes the "enter" key behave like the tab key and allows tabbing to wrap around front and back.

Presses "enter," the expected behavior, on text areas and submit buttons.

###Notes Uses tabindexes if defined otherwise uses visible inputs on the parent form.

This is jQuery based so of course you need to use that.

###Installation

Rails
Put sane_enter_key.js.coffeeinto your app/assets/javascripts folder.

Non-Rails
Put sane_enter_key.js into the folder you keep your Javascripts in.
Include the script into your webpage, for example: <script src="/javascripts/sane_enter_key.min.js"></script>

###Usage Call mbsd_sane_enter_key(); on any page you wish this behavior to run or put that at the end of your application template file (if you have one).

To run the code on all pages uncomment the code at the end of the script file you're using.

###License Creative Commons License
Sane Enter Key by Mike Bethany is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://github.com/mikbe/SaneEnterKey.

About

Make the Enter key act like the Tab key on web forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published