From f9ff184b8942751f3b94f493d81ffd696d3fb64a Mon Sep 17 00:00:00 2001 From: JeLuF Date: Sun, 2 Jul 2023 20:35:10 +0200 Subject: [PATCH] Keyboard shortcuts for the image editor --- ui/media/js/image-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/media/js/image-editor.js b/ui/media/js/image-editor.js index 3be8f95f..30026e02 100644 --- a/ui/media/js/image-editor.js +++ b/ui/media/js/image-editor.js @@ -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() } } }