CelestialCartographers/Loenn

Feature request: Menu bar click-and-hold

Opened this issue · 4 comments

In most applications with a menu bar, options in the menus can be selected by clicking and holding on the top-level button (File/Edit/View/etc.). moving the mouse to the option you want to select, then releasing it. This doesn't work in Lönn however, making me constantly get confused and try clicking and holding only for it to not do anything, as this is the way I typically use menu bars. This should be implemented.

I could attach an animated image/video showing this, but it wouldn't really demonstrate the difference between this and doing it the "normal" way, just try it in something like Notepad to see what I mean.

(Note, I'm not sure if you're using an existing UI library which would be responsible for these interactions, if you are then please direct me there so I can suggest it to them instead.)

Cruor commented

We use the OlympUI library. Olympus doesn't seem to actually use any menus though, so if anyone is implementing it we are the only ones actually using a nested menu 😅.
What menu item are you frequently using? Adding more hotkeys for convenience is not a problem.

I'm not even aware of what keybinds there are besides fairly standard ones like open/save/etc. - those really should also be shown in menubar menus but currently aren't. Regardless, that's not really related to what I'm suggesting, the fact is there's a type of interaction for these menus which is missing that is standard for most other software. (You'd be surprised how many unusual things this works in - like Source Engine -tools mode!) Ahorn also supported this behavior.

I'm still not sure if I should keep this issue here or move it to the OlympUI issue tracker, but it sounds like the menu bars are somewhat specific to Lönn so I'll keep it here for now.

The specific behaviors that should be implemented is as follows:

  • Top-level menu bar menus open on mouse down, instead of mouse up as they do currently
  • If the mouse is released while still over the top-level item, the menu will stay open and be clickable normally
  • If the mouse is released while over one of the items in the menu, it will select that item
  • If the mouse is hovered over another top-level menu bar item while still clicking, it will open that menu instead
Cruor commented

The menubars are actually specific to OlympUI, we do nothing special about them besides some dynamic generation, but its easier for me to improve them on Lönn's end.
Can't really prioritize this issue though, first time I have heard someone use this and I didn't even know menubars were supposed to work this way before you opened this issue 😓

It's fine, just figured I'd make a request so hopefully someone can get to it eventually