tags:

views:

29

answers:

1

i can use this code to handle "ctrl + s" on firefox :

$(window).unbind('keypress').keypress(function(event) {
                    if (!(event.which == 115 && event.ctrlKey)) return true;
                    $('#save').click();
                    event.preventDefault();
                    return false;
                });

but , it can't work on chrome and ie ,

so what can i do ?

thanks

+1  A: 

You may take a look at this library.

Darin Dimitrov
this may come in handy. Nome more extra work needed... 1up
Mario Cesar