From 1fda12640fc41d84abcb78d521a80865975a74e1 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Mon, 13 Mar 2023 22:07:21 -0700 Subject: [PATCH] Custom Image Modifiers dialog tweaks (#935) * Custom Image Modifiers dialog tweaks Couple minor usability improvements for the custom image modifiers dialog: - set the focus to the textbox when opening the dialog - pressing the Escape key closes the dialog * Adding keyboard shortcuts Escape to cancel the changes, Ctrl+Enter to confirm the changes. No change to the existing UI behavior using the mouse. * Make the overlay focusable Allows the keyboard shortcuts to work if user clicks on the main window rather than the textbox itself. * Disable spell and grammar correction --- ui/index.html | 4 ++-- ui/media/js/image-modifiers.js | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ui/index.html b/ui/index.html index d49e1f4d..38ff4852 100644 --- a/ui/index.html +++ b/ui/index.html @@ -392,12 +392,12 @@ -
Set your custom modifiers (one per line)
- +Tip: You can include special characters like {} () [] and |. You can also put multiple comma-separated phrases in a single line, to make a single modifier that combines all of those.