src/main/java/dev/lambdaurora/spruceui/widget/SpruceElement.java
default boolean onNavigation(NavigationDirection direction, boolean tab) {
        if (this.requiresCursor()) return false;
        if (direction.isVertical()) {
            return this.changeFocus(direction == NavigationDirection.DOWN);
        }
        return false;
    }
/**
     * Called when navigating in the menu.
     *
     * @param direction direction of navigation
     * @param tab {@code true} if the navigation was triggered by the tab key, else {@code false}
     * @return {@code true} if success, else {@code false}
     */
Called when navigating in the menu.
@param direction direction of navigation
@param tab  true if the navigation was triggered by the tab key, else  false
@return  true if success, else  false
Called when navigating in the menu . @param direction direction of navigation @param tab true if the navigation was triggered by the tab key else false @return true if success else false
default boolean onNavigation(NavigationDirection direction, boolean tab) {
        if (this.requiresCursor()) return false;
        if (direction.isVertical()) {
            return this.changeFocus(direction == NavigationDirection.DOWN);
        }
        return false;
    }
default boolean onNavigation ( NavigationDirection direction , boolean tab ) { if ( this . requiresCursor ( ) ) return false ; if ( direction . isVertical ( ) ) { return this . changeFocus ( direction == NavigationDirection . DOWN ) ; } return false ; }
Called when navigating in the menu.
Called when navigating in the menu .