Skip to content

util class

util.keyToString

lua
function util.keyToString(key) end

Converts a key code to its string representation.

Parameters

  • key: number: The key code.

Returns

  • string: The key as a string.

util.setClipboard

lua
function util.setClipboard(text) end

Sets the clipboard content.

Parameters

  • text: string: The text to set in the clipboard.

Returns

  • nil:

util.getClipboard

lua
function util.getClipboard() end

Gets the current clipboard content.

Returns

  • string: The clipboard text.

Reference: util.lua