fieldcontrol

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldControl

type FieldControl struct {
	// contains filtered or unexported fields
}

FieldControl provides control logic for a Field element, handling various events such as keyboard inputs and clipboard actions.

func New

func New(f *field.Field) *FieldControl

New creates and returns a new FieldControl for the given Field element.

func (*FieldControl) Control

func (c *FieldControl) Control(ctx context.Context, app eventlink.App, e event.Eventer, prior control.DoFunc)

Control processes events for the FieldControl, updating the Field element based on keyboard and clipboard inputs. It delegates to the prior control function for unhandled events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL