MacOS: Dialog Buttons and Menu Options become unclickable when a Dialog opens while Menu open
On MacOS:
When a Dialog shows (tested with SDK Dialogs since that was easier to reproduce), while the user has the Menu bar opened (actively clicked and browsing through the menu), somehow the whole window management and Lr Dialogs no longer get mouse clicks. You can not activate / click on any of the menu options anymore. Also the Buttons in the dialog are not clickable anymore. Only keyboard input (entering text into input fields or pressing Return on the keyboard for the default ok) still works.
How to reproduce: run the following code snippet:
local LrTasks = import "LrTasks"
local LrDialogs = import "LrDialogs"
local LrView = import "LrView"
LrTasks.startAsyncTask(function()
-- give the user some time to open the menu
LrTasks.sleep(2)
LrDialogs.message(
"Open the Menu (e.g. by clicking on File in the menu bar, before this dialog opens and keep the menu open).\nNow you can't click the ok button in the dialog or any menu option anymore\n(only pressing Return on the keyboard gets you out of this dialog).")
-- give the user some time to open the menu
LrTasks.sleep(2)
local f = LrView.osFactory()
LrDialogs.presentModalDialog({
title = "Same for modal dialogs",
contents = f:row{f:static_text{
title = "Hello World"
}, f:edit_field{
value = "writing here still works, but not clicking"
}, f:push_button{
title = "button",
action = function()
LrDialogs.message("This button also does not work")
end
}}
})
end)
This waits for 2 seconds before a dialog is shown. Withing those 2 seconds, click on the Menubar (eg. press File -> ) and keep the menu open until the dialog shows.
As soon as the dialog pops up, you cannot click any of the menu options anymore and you also cannot click the ok button of the dialog.
(press Return on the keyboard will still work and close the dialog, furtunately)
To check if the bug only happens for system message dialogs, the code continues and shows a native LrC dialog after another 2 seconds. So if you again open the menu bar before this dialog shows, you see the same behaviour. Interestingly enough it is still possible to write text into the edit_field, so keyboard input works, only mouse clicks are not recognized anymore.
This seems to be a rather big UI flaw for the user, since LrC seems completely unusable, unless pressing the "ok" action of the dialog via the keyboard.
