diff --git a/templates/index.html b/templates/index.html index 00d31f4..1f20417 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,6 +23,15 @@ ev.preventDefault(); } + function keyDownHandler(ev) { + if (ev.ctrlKey && ev.key == 's') { + ev.preventDefault(); + + let textarea = document.getElementById('text'); + textarea.form.submit(); + } + } + function openFile() { let input = document.createElement("input"); input.type = "file"; @@ -61,7 +70,7 @@
- +