MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getSelectionInformation

Function getSelectionInformation

code/communication/public/app.js:6546–6552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6544}
6545
6546function getSelectionInformation() {
6547 var focusedElem = getActiveElement();
6548 return {
6549 focusedElem: focusedElem,
6550 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
6551 };
6552}
6553
6554/**
6555 * @restoreSelection: If any selection information was potentially lost,

Callers 1

app.jsFile · 0.70

Calls 3

getActiveElementFunction · 0.70
hasSelectionCapabilitiesFunction · 0.70
getSelection$1Function · 0.70

Tested by

no test coverage detected