diff --git a/resources/js/app.js b/resources/js/app.js
index 004cc74..aed4350 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -851,6 +851,16 @@ document.getElementById("newBtn").onclick = function() {
document.getElementById("exportBtn").onclick = exportDocument;
+ // Ctrl+S / Cmd+S to save the current jot
+ document.addEventListener("keydown", function(e) {
+ if ((e.ctrlKey || e.metaKey) && (e.key === 's' || e.key === 'S')) {
+ e.preventDefault();
+ const text = getEditorText().trim();
+ if (!text) { alert("Enter some text first"); return; }
+ saveDocument(text);
+ }
+ });
+
const savedColumn = document.getElementById("savedColumn");
const toggleBtn = document.getElementById("toggleBtn");
toggleBtn.addEventListener("click", function() {