#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.coffee
into 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
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.