https://bugs.documentfoundation.org/show_bug.cgi?id=114481

--- Comment #4 from Howard Johnson <[email protected]> ---
Simple solution:  Open the shortcut menu a little further right and down from
where the mouse right down event occurs.


The right click has three associated events that occur in this order:

  a) right button down,
  b) any mouse motion, and
  c) right button released.


These cause the following things to occur:

  * Step a: Opens any shortcut menu dialog.

  * Step b1: Possibly moves the pointer over (onto) the shortcut menu, 
  * Step b2: Or not.

  * Step c: If the mouse pointer ends up on top of the shortcut menu, select a
shortcut menu item.


Steps b1 and c create the bug.  

We have to accept the possibility that motion onto the shortcut menu in step b
can occur.  

Unless a drag is involved, I think the user expects a click to do just one
thing at a time.  But in this case it is sometimes (with a tiny amount of mouse
motion) doing two things: opening and selecting.


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).  



Discussion of alternatives:

Solution A is radical, and takes away the possibility of right press, move to
menu, and right release behavior.   

Solution C is really just one way of implementing solution B.  I think it is
probably the safest and easiest way to fix this issue.  

Furthermore I noticed that in both FireFox and Chrome this is how they work. 
They have the exact same issue, like right here when I am editing this text,
and I press and hold the right mouse button down.  I then get a shortcut menu. 
And if I continue to hold the right button down, and move the mouse right, and
then down a bit, the pointer moves into this shortcut menu and lights up the
first menu selection.  If I then release the right button the event is fired
and the menu selection is performed.

Therefore I favor solution C.

-- 
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

Reply via email to