ctrl+s keyboard shortcut in svbtle

Mac
open the console cmd + option + J

$(window).on('keydown', function (event) {
    if (event.metaKey && event.which === 83) {
        event.preventDefault();
        $('.save_button a').click();
    }
});

close the console

Linux
open the console ctrl + shift + J

$(window).on('keydown', function (event) {
    if (event.ctrlKey && event.which === 83) {
        event.preventDefault();
        $('.save_button a').click();
    }
});

close the console

 
1
Kudos
 
1
Kudos

Now read this

Node FTW

tl;dr Want to crunch some numbers? Node is 10x faster than Ruby. I used to do a lot of scientific computing. My work environment had both Matlab and NumPy/SciPy all tricked out. These days I don’t do too much number crunching, spending... Continue →