mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 15:55:01 +02:00
Keyboard shortcuts for the image editor
This commit is contained in:
@ -722,6 +722,8 @@ class ImageEditor {
|
||||
let toolIndex = IMAGE_EDITOR_TOOLS.findIndex( t => t.hotkey ==event.key )
|
||||
if (toolIndex != -1) {
|
||||
this.selectOption("tool", toolIndex)
|
||||
event.stopPropagation()
|
||||
event.preventDefault()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user