https://bugs.documentfoundation.org/show_bug.cgi?id=114481
--- Comment #5 from Maxim Monastirsky <[email protected]> ---
(In reply to Howard Johnson from comment #4)
> Unless a drag is involved, I think the user expects a click to do just one
> thing at a time.
Well, different users have different expectations. Please take a look at these
two opposite questions:
https://superuser.com/questions/1166014/how-to-show-context-menu-on-mouse-up-instead-of-mouse-down
https://superuser.com/questions/1083706/show-context-menu-on-mouse-down-event
> Three possible solutions:
>
> A) Fire shortcut selection with right (or left) down events (rather than up
> events).
>
> B) After opening a shortcut menu, make sure a right release does not
> unintentionally select an item.
>
> C) Open the shortcut a little more to the right and down from where the
> right mouse is pressed down (just a few pixels will probably do).
I don't think any of these is a good idea, as any OS/GUI toolkits that I'm
aware of, work the same as LO currently (i.e. the context menu opens at the
cursor position, and the mouse up event used for executing menu items). There's
no reason for LO to be different.
What might make more sense, is to make the context menu show on mouse up event,
i.e it will require a full right click, rather than just mouse down. But, as
said above, not everyone will be happy with this. As a solution, we might
consider adding a configuration setting which will allow controlling this
behavior (although I'm not excited about such possibility).
In fact, there seem to be different conventions depending on OS/DE. Under Linux
both Gtk and Qt apps seem to use mouse down for showing context menus, same
with macOS. But under Windows usually mouse up is used, at least in standard
Windows apps (explorer, notepad etc.). And indeed, it appears that
cross-platform apps actually respect this difference. From my tests, Firefox,
Chrome and Qt Creator use mouse down under Linux, but mouse up under Windows.
So it might make sense for LO to follow that path as well, so keep the current
behavior under Linux and macOS (at least as default), but change to mouse up
under Windows.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs