MCPcopy Create free account
hub / github.com/adobe/react-spectrum / escape

Function escape

packages/react-aria/src/selection/useSelectableCollection.ts:360–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358 };
359
360 let escape = () => {
361 if (
362 escapeKeyBehavior === 'clearSelection' &&
363 !disallowEmptySelection &&
364 manager.selectedKeys.size !== 0
365 ) {
366 manager.clearSelection();
367 return;
368 }
369 return false;
370 };
371
372 let tab = () => {
373 if (!allowsTabNavigation && ref.current) {

Callers

nothing calls this directly

Calls 1

clearSelectionMethod · 0.65

Tested by

no test coverage detected