Tweak save shortcut.
This commit is contained in:
@@ -53,7 +53,7 @@ Designed to support desktop, mobile and multi-screen devices.
|
|||||||
- View file info and metadata.
|
- View file info and metadata.
|
||||||
- Rename, move or **permanently** remove a model and all of it's related files.
|
- Rename, move or **permanently** remove a model and all of it's related files.
|
||||||
- Read, edit and save notes. (Saved as a `.txt` file beside the model).
|
- Read, edit and save notes. (Saved as a `.txt` file beside the model).
|
||||||
- `Ctrl+s` to save a note when the textarea is in focus.
|
- `Ctrl+s` or `⌘+S` to save a note when the textarea is in focus.
|
||||||
- Autosave can be enabled in settings. (Note: Once the model info view is closed, the undo history is lost.)
|
- Autosave can be enabled in settings. (Note: Once the model info view is closed, the undo history is lost.)
|
||||||
- Change or remove a model's preview image.
|
- Change or remove a model's preview image.
|
||||||
- View training tags and use the random tag generator to generate prompt ideas.
|
- View training tags and use the random tag generator to generate prompt ideas.
|
||||||
|
|||||||
@@ -2716,26 +2716,30 @@ class ModelInfo {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
new KeyComboListener(
|
if (navigator.userAgent.includes("Mac")) {
|
||||||
["ControlLeft", "KeyS"],
|
new KeyComboListener(
|
||||||
saveDebounce,
|
["MetaLeft", "KeyS"],
|
||||||
notes,
|
saveDebounce,
|
||||||
);
|
notes,
|
||||||
new KeyComboListener(
|
);
|
||||||
["ControlRight", "KeyS"],
|
new KeyComboListener(
|
||||||
saveDebounce,
|
["MetaRight", "KeyS"],
|
||||||
notes,
|
saveDebounce,
|
||||||
);
|
notes,
|
||||||
new KeyComboListener(
|
);
|
||||||
["MetaLeft", "KeyS"],
|
}
|
||||||
saveDebounce,
|
else {
|
||||||
notes,
|
new KeyComboListener(
|
||||||
);
|
["ControlLeft", "KeyS"],
|
||||||
new KeyComboListener(
|
saveDebounce,
|
||||||
["MetaRight", "KeyS"],
|
notes,
|
||||||
saveDebounce,
|
);
|
||||||
notes,
|
new KeyComboListener(
|
||||||
);
|
["ControlRight", "KeyS"],
|
||||||
|
saveDebounce,
|
||||||
|
notes,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
this.elements.notes = notes;
|
this.elements.notes = notes;
|
||||||
this.#savedNotesValue = noteText;
|
this.#savedNotesValue = noteText;
|
||||||
|
|||||||
Reference in New Issue
Block a user