MrLoick / fire-hostadmin

Automatically exported from code.google.com/p/fire-hostadmin
0 stars 0 forks source link

bind ctrl-s to save #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open the editor
2. edit
3. hit CTRL-S on the keyboard

What is the expected output? What do you see instead?
I whould like to automatically save the file, but I see the "save as" operating 
system window

What version of the product are you using? On what operating system?
latest? on windows

Please provide any additional information below.
I don't really know the plain js version, but with jquery you can bind the 
CTRL-S with

$(document).keypress('s', function(e) {
  e && e.preventDefault();
  if (e.ctrlKey)
    console.log('you have typed CTRL-S');
});

Original issue reported on code.google.com by Vito.DeT...@gmail.com on 25 Jul 2012 at 4:55

GoogleCodeExporter commented 8 years ago
good idea
i will merge at next version

Original comment by farmer1...@gmail.com on 25 Jul 2012 at 4:57

GoogleCodeExporter commented 8 years ago
1.3.8

Original comment by farmer1...@gmail.com on 2 Dec 2012 at 10:54