react/packages/react-devtools-shared/src
Brian Vaughn a6bdb882b7
Attach DevTools Tree keyboard events to the Tree container (not the document) (#24164)
We used to listen to at the document level for this event. That allowed us to listen to up/down arrow key events while another section
of DevTools (like the search input) was focused. This was a minor UX positive.

(We had to use ownerDocument rather than document for this, because the DevTools extension renders the Components and Profiler tabs into portals.)

This approach caused a problem though: it meant that a react-devtools-inline instance could steal (and prevent/block) keyboard events from other JavaScript on the page– which could even include other react-devtools-inline instances. This is a potential major UX negative.

Given the above trade offs, we now listen on the root of the Tree itself.
2022-03-25 12:41:13 -04:00
..
__tests__ fix inspecting an element in a nested renderer bug (#24116) 2022-03-17 15:40:03 -04:00
backend Allow updating dehydrated root at lower priority without forcing client render (#24082) 2022-03-20 16:18:51 -04:00
config StyleX plug-in for resolving atomic styles to values for props.xstyle (#22808) 2021-12-07 20:04:12 -05:00
devtools Attach DevTools Tree keyboard events to the Tree container (not the document) (#24164) 2022-03-25 12:41:13 -04:00
hooks Correct typing errors detected in several files (#22965) 2022-01-04 10:30:07 -05:00
node_modules/react-window Code mod import * as React from 'react' in react-window (#18105) 2020-02-21 23:20:17 -08:00
Logger.js [DevTools] Log errors occurring or reported to the frontend (#22948) 2021-12-13 11:38:45 -05:00
PerformanceLoggingUtils.js Clear performance marks after measuring (#22345) 2021-09-17 10:46:42 -04:00
TimeoutError.js Show different error boundary UI for timeouts than normal errors (#22483) 2021-10-01 15:03:36 -04:00
UnsupportedBridgeOperationError.js Store throws a specific Error type (UnsupportedBridgeOperationError) (#24147) 2022-03-23 17:04:54 -04:00
backendAPI.js StyleX plug-in for resolving atomic styles to values for props.xstyle (#22808) 2021-12-07 20:04:12 -05:00
bridge.js Disable unsupported Bridge protocol version dialog and add workaround for old protocol operations format (#24093) 2022-03-15 13:48:26 -04:00
constants.js DevTools: Timeline profiler refactor 2022-01-28 13:09:28 -05:00
dynamicImportCache.js Rename (some) "scheduling profiler" references to "timeline" (#22690) 2021-11-03 15:10:29 -04:00
events.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
hook.js Refactored how React/DevTools log Timeline performance data (#23102) 2022-01-13 14:55:54 -05:00
hookNamesCache.js Rename (some) "scheduling profiler" references to "timeline" (#22690) 2021-11-03 15:10:29 -04:00
hydration.js DevTooks: Don't dehydrate hook source fileNames (#21814) 2021-07-07 14:24:17 -04:00
inspectedElementCache.js Rename (some) "scheduling profiler" references to "timeline" (#22690) 2021-11-03 15:10:29 -04:00
inspectedElementMutableSource.js Correct typing errors detected in several files (#22965) 2022-01-04 10:30:07 -05:00
isArray.js Add isArray in devTools utils (#22438) 2021-09-27 17:17:30 -04:00
registerDevToolsEventLogger.js DevTools: Log version in internal logger (#22825) 2021-11-30 10:48:46 -05:00
storage.js Added FB copyright header 2019-08-27 10:54:01 -07:00
types.js add <TracingMarker> component boilerplate (#23275) 2022-02-11 08:42:55 -08:00
utils.js add <TracingMarker> component boilerplate (#23275) 2022-02-11 08:42:55 -08:00