Skip to main content
Known Participant
January 8, 2024
Question

MacOS: Dialog Buttons and Menu Options become unclickable when a Dialog opens while Menu open

  • January 8, 2024
  • 2 replies
  • 1135 views

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.

This topic has been closed for replies.

2 replies

sb-xAuthor
Known Participant
February 21, 2024

Little addition:
I just updated to the new LrC 13.2 and was a little quick to click into the menu, when the "whats new" screen showed, completely locking up my menu

 

no matter where i click it stays exactly like this, i can not select any option from the menu or get the menu close by clicking somewhere inside LrC.


Only after switching back and forth some windows and clicking in the menu in other applications it seems to have recovered and the menu is closed.

So generally would probably be good to close the menu when modal dialogs or popups show.

 

Would be highly appreciated for SDK / plugin dialogs too.

johnrellis
Legend
January 8, 2024

Hmm, I don't observe that misbehavior on my LR 13.1 / Mac OS 14.1 -- the controls on the dialogs continue to work correctly. See the attached screen recording.  I wonder what's different between our two configurations.   


Which screen mode are you in, using the terminology of the menu command Window > Screen Mode?

sb-xAuthor
Known Participant
January 9, 2024

interesting, so for you the menus do not work anymore, but the dialogs still are clickable? I'm on LrC 13.1, MacOS 14.2.1 

sb-xAuthor
Known Participant
January 9, 2024

Tested on other machines with older MacOS (Big Sur and 13.3.1) and can confirm, that there only the menus are not working anymore but the dialog is still clickable.

Will do some further testing to see if i can pinpoint to a specific version or setting, that causes the behaviour.