From b99b9302cce5a8e175fc7faf87edc6c745f22fd3 Mon Sep 17 00:00:00 2001 From: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com> Date: Sun, 2 May 2021 12:31:33 -0700 Subject: [PATCH] Fix inspector window scaling with caps lock When launched with the accelerator key, the inspector window initially scales the image without respecting the state of the caps lock. This commit fixes the bug. --- rtgui/filecatalog.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtgui/filecatalog.cc b/rtgui/filecatalog.cc index cdcb00195..d0316a2d4 100644 --- a/rtgui/filecatalog.cc +++ b/rtgui/filecatalog.cc @@ -2515,8 +2515,10 @@ bool FileCatalog::handleShortcutKey (GdkEventKey* event) if (!ctrl && !alt) { switch (event->keyval) { case GDK_KEY_f: + fileBrowser->getInspector()->showWindow(true); + return true; case GDK_KEY_F: - fileBrowser->getInspector()->showWindow(!shift); + fileBrowser->getInspector()->showWindow(false); return true; } }