Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ handler
Function
handler
packages/react-aria/src/interactions/useFocusVisible.ts:331–333 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
329
let
[modality, setModality] = useState(currentModality);
330
useEffect(() => {
331
let
handler = () => {
332
setModality(currentModality);
333
};
334
335
changeHandlers.add(handler);
336
return
() => {
Callers
5
triggerChangeHandlers
Function · 0.70
createEventHandler
Function · 0.70
createKeyboardShortcutHandler.test.js
File · 0.50
useSelectionChange
Function · 0.50
listener
Function · 0.50
Calls
3
isKeyboardFocusEvent
Function · 0.85
fn
Function · 0.85
isFocusVisible
Function · 0.85
Tested by
no test coverage detected