From bdec942d7234d04080790510aa35b31a9acadd2e Mon Sep 17 00:00:00 2001 From: Andreas <andreas.hatziiliou@savoirfairelinux.com> Date: Fri, 20 Sep 2024 15:30:01 -0400 Subject: [PATCH] shortcuts: fix unintended menu behavior Fixed small issue where the button to bring up the keyboard shortcuts menu would not be brought up if it was previously hidden or minimized. Change-Id: I89b021ca7a00c67325c992fde9cd14fbb8b82cf3 --- src/app/mainview/js/keyboardshortcuttablecreation.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/mainview/js/keyboardshortcuttablecreation.js b/src/app/mainview/js/keyboardshortcuttablecreation.js index 8e327a435..420d16672 100644 --- a/src/app/mainview/js/keyboardshortcuttablecreation.js +++ b/src/app/mainview/js/keyboardshortcuttablecreation.js @@ -46,7 +46,6 @@ function finishCreation() { } function showKeyboardShortcutTableWindow() { - keyboardShortcutTableWindowObject.show() var centerX = mainWindow.x + mainWindow.width / 2 var centerY = mainWindow.y + mainWindow.height / 2 @@ -54,6 +53,11 @@ function showKeyboardShortcutTableWindow() { keyboardShortcutTableWindowObject.height = 0.75 * appWindow.height keyboardShortcutTableWindowObject.x = centerX - keyboardShortcutTableWindowObject.width / 2 keyboardShortcutTableWindowObject.y = centerY - keyboardShortcutTableWindowObject.height / 2 + + keyboardShortcutTableWindowObject.visible = true + keyboardShortcutTableWindowObject.show() + keyboardShortcutTableWindowObject.raise() + keyboardShortcutTableWindowObject.requestActivate() } // Destroy and reset selectScreenWindowObject when window is closed. -- GitLab