+1
Completed
CTRL + S for Saving
Being able to ctrl+s save is a luxury but it can make the editor feel nicer for those that instinctively press ctrl+s to save their text (especially when I forget that I am typing into a browser)
A javascript demonstration:
JSfiddle jQuery Example
This uses the keydown event from jQuery as opposed to the keypress event
I am using Chrome v25 as my web browser
Other Ideas:
CTRL + Tab for switching tabs right (Not tested)
CTRL + Shift + Tab for switching tabs left (Not tested)
A javascript demonstration:
JSfiddle jQuery Example
This uses the keydown event from jQuery as opposed to the keypress event
I am using Chrome v25 as my web browser
Other Ideas:
CTRL + Tab for switching tabs right (Not tested)
CTRL + Shift + Tab for switching tabs left (Not tested)
Customer support service by UserEcho
In the new editor you should be able to CMD+S/CTRL+S to save and CMD+E/CTRL+E to snapshot.
If that isn't working then let me know and I will have someone look at it.
CTRL + D for delete line works though. But Google chrome overrides the CTRL+S implementation by asking if I wish to save the webpage.
// Keyboard shortcuts
$(window).keydown(function(e) {
if (e.metaKey) {
// e - snapshot
if (e.keyCode == 69) {
$('#fsnapshot a').trigger('click');
e.preventDefault();
return false;
}
// s - save
else if (e.keyCode == 83) {
window.editor_app.save();
e.preventDefault();
return false;
}
// o - toggle file manager
else if (e.keyCode == 79) {
var showing = false;
if ($('#fileManager').is(':hidden')) {
showing = true;
}
$('#finderTag').trigger('click');
if (showing) {
$('.elfinder-cwd-view-icons').focus();
}
e.preventDefault();
return false;
}
}
});
Ran out of time to write more but:
changing e.metaKey -> e.ctrlKey might work