Raxol.Components.Input.MultiLineInput.ClipboardHelper (Raxol v0.3.0)

View Source

Helper for clipboard operations (copy/cut/paste) in MultiLineInput.

Summary

Functions

Copies the currently selected text to the clipboard. Returns a tuple with the state (unchanged) and a list of commands to execute.

Cuts the selected text (copies then deletes). Returns a tuple with the updated state and a list of commands to execute.

Initiates a paste operation from clipboard. Returns a tuple with the state (unchanged) and a command to read from clipboard.

Functions

copy_selection(state)

Copies the currently selected text to the clipboard. Returns a tuple with the state (unchanged) and a list of commands to execute.

cut_selection(state)

Cuts the selected text (copies then deletes). Returns a tuple with the updated state and a list of commands to execute.

paste(state)

Initiates a paste operation from clipboard. Returns a tuple with the state (unchanged) and a command to read from clipboard.