Menu

#2106 Opened menu unexpectedly closes

KeePass_2.x
closed
nobody
None
5
2021-10-20
2021-10-19
Sworddragon
No

Environment: Windows 10 21H1 (64 bit) with KeePass 2.49

On switching from a menu to another one while it is opened (e.g. opening the Find menu in the menu bar and then switching to one of its neighbors) the menu sometimes unexpectedly closes for me. On testing around what exactly triggers this bug I could not find the exact cause but it seems to be easily reproduceable on opening any menu (like the mentioned Find menu) and then moving the mouse very fast to the right without hovering any entries from any opened menu while doing this.

Discussion

  • wellread1

    wellread1 - 2021-10-19

    When a item is clicked on the Main Menu and then the mouse is moved right or left along the Main Menu, adjacent menus are displayed as the mouse scrolls over them, otherwise I can't reproduce the behavior you describe. This behavior is common for the type of menu used by KeePass. For example check the menu display behavior of MS Notepad.

     

    Last edit: wellread1 2021-10-19
  • wellread1

    wellread1 - 2021-10-19

    I occasionally observed the menu dropdowns to disappear when the mouse strays above or below Main Menu bar, but they generally reappear when the mouse returns to the Main Menu bar. Is that the behavior you are describing?

     
    • Sworddragon

      Sworddragon - 2021-10-19

      Yes, this is another example case where this issue happens. For this case it seems to happen when another opened menu is being hovered into (e.g. moving the mouse from Find to View) but the hovered menu (here View) is being unhovered (e.g. by moving the mouse up) before the entries from its menu could actually open.

       

      Last edit: Sworddragon 2021-10-19
  • Paul

    Paul - 2021-10-19

    I can get menus to disappear be rushing across the menus, but the menu select is still active, so moving back to a menu displays it. It seems to happen when you drop to the entry pane.

    I don't see it as an issue as you have to try fairly hard to make it happen.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2021-10-19
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2021-10-19

    Displaying menus is handled by the framework (.NET/Mono), not by KeePass itself. So, this would need to be fixed in the framework.

    Thanks and best regards,
    Dominik

     
    • Sworddragon

      Sworddragon - 2021-10-20

      But the controlling logic is handled by KeePass which could introduce bugs as well. It also seems the nature of this bug makes it dependent on the users mouse behavior, e.g. fast mouse movements are more affected than slow mouse movements. This issue also appears very frequently here and acts very broken and while it is not impossible to be a .NET Framework bug it would be a bit interesting (but not surprising) if all related .NET Framework applications would be affected by it.

      Still, it could be indeed a bug in the .NET Framework, but are you sure that this issue is not caused by the controlling logic of KeePass?

       

      Last edit: Sworddragon 2021-10-20
  • Dominik Reichl

    Dominik Reichl - 2021-10-20

    KeePass defines the properties of the menu items (texts, icons, event handlers to be invoked when menu items are clicked, ...). All the details (displaying the menus, handling mouse moves, invoking event handlers for clicks, accessibility support, ...) are handled by the framework. So, I don't see what could be changed in KeePass in order to resolve the problems that you mentioned. If you have a concrete idea, please let me know.

    Thanks and best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB