<Swing Dev> [14] RFR 8225505: ctrl-F1 does not show the tooltip of a menu item (JMenuItems)

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Aug 1 02:20:03 UTC 2019


Hi, Dmitry.

On 27.06.2019 02:59, Dmitry Markov wrote:
> BasicPopupMenuUI.MenuKeyboardHelper should detect tool tip key sequence and forward it to currently highlighted(selected) for further processing.

But in the current proposal currently selected menuItem
will get a "new" mouse keyPressed event without keyReleased
event, right? Note that this new events will contradicts the
spec of MenuSelectionManager.processKeyEvent() which states
that the menuElements should not process the keyEvents itself.

It is also possible to set the accelerator for the menuitem to
"F1+CTRL" and I think it should have more priority than the tooltip key.

BTW I assume that "ESCAPE" shortcut to hide the tooltip was
not implemented intentionally.

-- 
Best regards, Sergey.


More information about the swing-dev mailing list