Garry's Mod Wiki

Panel:Undo

  Panel:Undo()

Description

Restores the last saved state (caret position and the text inside) of a TextEntry. Should act identically to pressing CTRL+Z in a TextEntry.

See also Panel:SaveUndoState.