Run when the Escape key is pressed while the edit box has keyboard focus. By default, an EditBox provides no way to clear keyboard input focus (though clicking in another edit box will focus it instead) -- providing an OnEscapePressed handler to call :ClearFocus() (or inheriting from the default UI's InputBoxTemplate, which does so) may prove useful.

Signature:

OnEscapePressed(self)

Arguments:

  • self - Reference to the widget for which the script was run (editbox)