We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d9655 commit 6215e1cCopy full SHA for 6215e1c
packages/react-devtools-shared/src/devtools/views/Components/SearchInput.js
@@ -53,9 +53,13 @@ export default function SearchInput(props: Props) {
53
);
54
55
const handleInputKeyPress = useCallback(
56
- ({key}) => {
+ ({key, shiftKey}) => {
57
if (key === 'Enter') {
58
- dispatch({type: 'GO_TO_NEXT_SEARCH_RESULT'});
+ if (shiftKey) {
59
+ dispatch({type: 'GO_TO_PREVIOUS_SEARCH_RESULT'});
60
+ } else {
61
+ dispatch({type: 'GO_TO_NEXT_SEARCH_RESULT'});
62
+ }
63
}
64
},
65
[dispatch],
0 commit comments