Keyboard shortcuts for the image editor

This commit is contained in:
JeLuF 2023-07-02 20:35:10 +02:00
parent 0118c7c808
commit f9ff184b89

View File

@ -722,6 +722,8 @@ class ImageEditor {
let toolIndex = IMAGE_EDITOR_TOOLS.findIndex( t => t.hotkey ==event.key ) let toolIndex = IMAGE_EDITOR_TOOLS.findIndex( t => t.hotkey ==event.key )
if (toolIndex != -1) { if (toolIndex != -1) {
this.selectOption("tool", toolIndex) this.selectOption("tool", toolIndex)
event.stopPropagation()
event.preventDefault()
} }
} }
} }