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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user