Skip to content

Commit 6ecba80

Browse files
committed
Ctrl+S
1 parent 0b20285 commit 6ecba80

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Supported hotkeys
9696
| `Shift` when drawing **line** | draw at angles of `0`, `45`, `90`, `135` etc degrees |
9797
| `Alt` when using pipette | Open zoom helper |
9898
| `Ctrl` + `Wheel mouse up/down` | Zoom image to 100% and back. Works only if image doesn't fit in the draw area (e.g. area `800x600` and you draw `1920x1080` image) |
99+
| `Ctrl + S` | Save image |
99100

100101
Configuration
101102
=============

js/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,13 @@ class PainterroProc {
582582
} else if (evt.keyCode == 90 && evt.ctrlKey) {
583583
this.worklog.undoState();
584584
}
585+
586+
if (this.saveBtn) {
587+
if (evt.keyCode == 83 && evt.ctrlKey) { // 's' key pressed
588+
this.save();
589+
evt.preventDefault();
590+
}
591+
}
585592
}
586593
},
587594
'paste': (event) => {

0 commit comments

Comments
 (0)