Skip to content

Commit

Permalink
assign saveCurrent to ctrl+s
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Apr 23, 2024
1 parent 3c9276f commit 5375d33
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/js/classes/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,15 @@ export const Input = function(app) {
$(document).on('keydown', e => {
if (!app.inWorkspace()) return;

if ((e.metaKey || e.ctrlKey) && e.shiftKey) {
if ((e.metaKey || e.ctrlKey)) {
switch (e.keyCode) {
case Key.S:
app.data.trySave(FILETYPE.JSON);
break; // ctrl+shift+s
e.preventDefault();
app.data.trySaveCurrent();
break; // ctrl+s
case Key.A:
app.data.tryAppend();
break; // ctrl+shift+a
break; // ctrl+a
}
}
if ((e.metaKey || e.ctrlKey) && e.altKey) {
Expand Down

0 comments on commit 5375d33

Please sign in to comment.