Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#mytextarea").on("keypress keydown",function(e) {
- if ((e.which == '115' || e.which == '83' ) && (e.ctrlKey || e.metaKey)) {
- e.preventDefault();
- alert("Ctrl-s pressed");
- return false;
- }
- return true;
- });
Add Comment
Please, Sign In to add comment