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.
This commit is contained in:
Lawrence Lee
2021-05-02 12:31:33 -07:00
parent e25cb3fde0
commit b99b9302cc

View File

@@ -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;
}
}