mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-28 18:08:54 +01:00
Keyboard shortcuts for the image editor
This commit is contained in:
parent
0118c7c808
commit
f9ff184b89
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user