klyn.gui.windows.MenuBar.handleKeyPressed
method

    public handleKeyPressed(key as String) as Boolean:

Description

Handles keyboard navigation while a menu popup is opened.

This method is called by the native window backend before dispatching key events to the currently focused widget. That keeps menu navigation consistent with desktop applications: arrow keys move inside menus instead of scrolling or changing the focus owner behind the popup.

    if bar.activateMnemonic("F"):
    bar.handleKeyPressed("Down")