MCPcopy Create free account
hub / github.com/Effect-TS/effect / setSelection

Function setSelection

packages/ui/native/src/Native.ts:1385–1397  ·  view source on GitHub ↗
(
  host: Context.Service.Shape<typeof Host>,
  node: NativeNode,
  start: number,
  end = start
)

Source from the content-addressed store, hash-verified

1383 * @since 4.2.0
1384 */
1385export const setSelection = (
1386 host: Context.Service.Shape<typeof Host>,
1387 node: NativeNode,
1388 start: number,
1389 end = start
1390): void => {
1391 host.command(node, "setTextAndSelection", [
1392 node.eventCount,
1393 null,
1394 start,
1395 end
1396 ])
1397}
1398
1399/**
1400 * Operations available to a {@link ViewKind}'s hooks.

Callers

nothing calls this directly

Calls 1

commandMethod · 0.65

Tested by

no test coverage detected