jQuery plugin to submit any form with CTRL+Enter shortcut.
Simply use $('#fooMsgField').ctrlEnter("#fooInputSubmit", callback);
to implement it.
You can find a working example here.
- Used closure to wrap plugin and example code;
- Now we don't break the chain;
- Changing some private variable name;
- Updated CodePen example;
- Add minified version (Google Closure Compiler);
- Used
on
instead ofbind
;
- First Commit;