mirror of
https://github.com/heyman/heynote.git
synced 2026-02-06 11:27:25 +00:00
Add Ctrl/Cmd+Enter keyboard shortcut in draw dialog to save the drawn image
This commit is contained in:
parent
52f23964be
commit
e3ea5d7b8c
@ -177,6 +177,13 @@
|
||||
return
|
||||
}
|
||||
|
||||
const isMod = event.metaKey || event.ctrlKey
|
||||
if (isMod && event.key === "Enter") {
|
||||
event.preventDefault()
|
||||
this.saveImage()
|
||||
return
|
||||
}
|
||||
|
||||
if (event.key === "Backspace" || event.key === "Delete") {
|
||||
if (this.deleteSelection()) {
|
||||
event.preventDefault()
|
||||
@ -184,7 +191,6 @@
|
||||
return
|
||||
}
|
||||
|
||||
const isMod = event.metaKey || event.ctrlKey
|
||||
if (!isMod) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user