Skip to content

Commit

Permalink
Add the reverttosaved command and corresponding hotkeys
Browse files Browse the repository at this point in the history
(Ctrl-Shift-Q and Command-Shift-Q)
  • Loading branch information
monchi59 committed Nov 22, 2011
1 parent d021247 commit 5f924e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions client/ext/keybindings_default/default_mac.js
Expand Up @@ -14,7 +14,8 @@ return keys.onLoad({
}, },
"save" : { "save" : {
"quicksave": "Command-S", "quicksave": "Command-S",
"saveas": "Command-Shift-S" "saveas": "Command-Shift-S",
"reverttosaved": "Command-Shift-Q"
}, },
"undo" : { "undo" : {
"undo": "Command-Z", "undo": "Command-Z",
Expand Down Expand Up @@ -145,4 +146,4 @@ return keys.onLoad({
} }
}); });


}); });
5 changes: 3 additions & 2 deletions client/ext/keybindings_default/default_win.js
Expand Up @@ -15,7 +15,8 @@ return keys.onLoad({
}, },
"save" : { "save" : {
"quicksave": "Ctrl-S", "quicksave": "Ctrl-S",
"saveas": "Ctrl-Shift-S" "saveas": "Ctrl-Shift-S",
"reverttosaved": "Ctrl-Shift-Q"
}, },
"undo" : { "undo" : {
"undo": "Ctrl-Z", "undo": "Ctrl-Z",
Expand Down Expand Up @@ -145,4 +146,4 @@ return keys.onLoad({
} }
}); });


}); });
3 changes: 2 additions & 1 deletion client/ext/save/save.js
Expand Up @@ -26,7 +26,8 @@ module.exports = ext.register("ext/save/save", {


commands : { commands : {
"quicksave": {hint: "save the currently active file to disk"}, "quicksave": {hint: "save the currently active file to disk"},
"saveas": {hint: "save the file to disk with a different filename"} "saveas": {hint: "save the file to disk with a different filename"},
"reverttosaved": {hint: "downgrade the currently active file to the last saved version"}
}, },
hotitems : {}, hotitems : {},
nodes : [], nodes : [],
Expand Down

0 comments on commit 5f924e6

Please sign in to comment.