Widget API: EditBox:GetAltArrowKeyMode

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API EditBox GetAltArrowKeyMode to API EditBox GetAltArrowKeyMode without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← EditBox < GetAltArrowKeyMode


This function returns the value of ignoreArrows attribute of <EditBox> element.

ignoreArrows = editBox:GetAltArrowKeyMode()

ArgumentsEdit

none

ReturnsEdit

ignoreArrows -- 1 if editBox ignores keyboard arrows, and nil if editBox captures them.

DetailsEdit

By default, <EditBox> element reacts on pressing keyboard arrows -- left and right arrows will move input cursor around the text in edit box, while up and down arrows will cycle through EditBox's history (if it is enabled).

However, when ignoreArrows attribute is set to true, <EditBox> will only react on pressing Alt+Arrows and ignore unmodified arrows. In this case event "arrow key pressed" will propagate up the ierarchy of objects until it is captured, most likely by WorldFrame.

See AlsoEdit