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

--- Comment #6 from Buovjaga <ilmari.lauhakan...@libreoffice.org> ---
F10 does move the focus to the first menu on Windows as well (so you can hit
Down arrow to open the menu).

Somewhat interesting is this handling of alternate keycodes found only in gen
and gtk3 plugins:
https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/window/salframe.cxx?r=10831c8b#2613
https://opengrok.libreoffice.org/xref/core/vcl/unx/gtk3/gtkframe.cxx?r=bee080ab#337

// F10 means either KEY_F10 or KEY_MENU, which has to be decided
// in the independent part.

This leads to the way more interesting
https://opengrok.libreoffice.org/xref/core/vcl/source/window/menubarwindow.cxx?r=f0977206#750

if ( nCode == KEY_MENU && !rKEvent.GetKeyCode().IsShift() ) // only F10, not
Shift-F10
{
    mbAutoPopup = false;
    if ( m_nHighlightedItem == ITEMPOS_INVALID )
    {
        ChangeHighlightItem( 0, false );
        GrabFocus();
    }
    else
    {
        ChangeHighlightItem( ITEMPOS_INVALID, false );
        m_xSaveFocusId = nullptr;
    }
    bDone = true;
}

and another special case:
https://opengrok.libreoffice.org/xref/core/vcl/source/window/menufloatingwindow.cxx?r=f0977206#1144

Then there is this for Windows:
https://opengrok.libreoffice.org/xref/core/vcl/win/window/salframe.cxx?r=d4a110f8#5130
// Process here KeyMenu events only for Alt to activate the MenuBar

Indeed, Left Alt on Windows acts just like F10 in that it moves the focus into
the first menu.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to