EditBox:GetAltArrowKeyMode

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the edit box ignores keyboard arrows.

altMode = EditBox:GetAltArrowKeyMode()

Returns

altMode
boolean

Details

  • This is the ignoreArrows attribute in XML.
  • 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.