wxNavigationKeyEvent(3)
π wxNavigationKeyEvent π
okay bestie, welcome to wxNavigationKeyEvent(3) β an Erlang Module Definition from the wx manual, and yes it's giving "I'm the plumbing that makes your Tab key actually do something" energy. Sit down, grab a strawberry π, we're doing this.
β¨ NAME β¨
wxNavigationKeyEvent β this event class contains information about navigation events, generated by navigation keys such as tab and page down. π
π¦ DESCRIPTION π¦
This event is mainly used by wxWidgets implementations, fr fr. A wxNavigationKeyEvent handler is automatically provided by wxWidgets when you enable keyboard navigation inside a window by inheriting it from wxNavigationEnabled<>. Like, it shows up already dressed and ready, you don't gotta do anything. β¨
See: wxWindow:navigate/2
This class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxNavigationKeyEvent
π Events π
Use wxEvtHandler:connect/3 with wxNavigationKeyEventType to subscribe to events of this type. That's your group chat invite right there, no cap. π
π DATA TYPES π
wxNavigationKey() :: #wxNavigationKey{}.wxNavigationKeyEvent() :: wx:wx_object().wxNavigationKeyEventType() :: navigation_key.
π FUNCTIONS π
getCurrentFocus(This) -> wxWindow:wxWindow()whenThis :: wxNavigationKeyEvent().
Returns the child that has the focus, or NULL. Or NULL β not me getting nothing back and having a whole breakdown about it π
getDirection(This) -> boolean()whenThis :: wxNavigationKeyEvent().
Returns true if the navigation was in the forward direction. Forward = slay. Backward = also fine, we don't judge. π«Ά
isFromTab(This) -> boolean()whenThis :: wxNavigationKeyEvent().
Returns true if the navigation event was from a tab key.
This is required for proper navigation over radio buttons. (Radio buttons are lowkey the drama queens of UI widgets, they need this info to behave.) π
isWindowChange(This) -> boolean()whenThis :: wxNavigationKeyEvent().
Returns true if the navigation event represents a window change (for example, from Ctrl-Page Down in a notebook). Different window, different vibe, we gotta know. πΈ
setCurrentFocus(This, CurrentFocus) -> okwhenThis :: wxNavigationKeyEvent(),CurrentFocus :: wxWindow:wxWindow().
Sets the current focus window member. Boom, focus assigned, main character crowned. π
setDirection(This, Direction) -> okwhenThis :: wxNavigationKeyEvent(),Direction :: boolean().
Sets the direction to forward if direction is true, or backward if false. Two options, pick your fighter. π₯
setFromTab(This, FromTab) -> okwhenThis :: wxNavigationKeyEvent(),FromTab :: boolean().
Marks the navigation event as from a tab key. Tag it, bestie. π·οΈ
setWindowChange(This, WindowChange) -> okwhenThis :: wxNavigationKeyEvent(),WindowChange :: boolean().
Marks the event as a window change event. Announce it to the whole server, periodt. π’
And that's the whole page, no crumbs left over. π§ This lil masterpiece is brought to you by Ericsson AB, straight out of wx 2.6, dated wxNavigationKeyEvent(3) β so like, iconic source, iconic version, and honestly? The date is giving "been here, still slaying." Byeee, go build something cute with it π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms