File tree 2 files changed +13
-4
lines changed
packages/react-devtools-shared/src/devtools/views
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ import tooltipStyles from './Tooltip.css';
16
16
type Props = {
17
17
children : React$Node ,
18
18
className ?: string ,
19
- title ?: string ,
19
+ title : React$Node ,
20
20
...
21
21
} ;
22
22
23
23
export default function Button ( {
24
24
children,
25
25
className = '' ,
26
- title = '' ,
26
+ title,
27
27
...rest
28
28
} : Props ) {
29
29
let button = (
Original file line number Diff line number Diff line change @@ -95,14 +95,23 @@ export default function SearchInput(props: Props) {
95
95
className = { styles . IconButton }
96
96
disabled = { ! searchText }
97
97
onClick = { ( ) => dispatch ( { type : 'GO_TO_PREVIOUS_SEARCH_RESULT' } ) }
98
- title = "Scroll to previous search result" >
98
+ title = {
99
+ < React . Fragment >
100
+ Scroll to previous search result (< kbd > Shift</ kbd > +{ ' ' }
101
+ < kbd > Enter</ kbd > )
102
+ </ React . Fragment >
103
+ } >
99
104
< ButtonIcon type = "up" />
100
105
</ Button >
101
106
< Button
102
107
className = { styles . IconButton }
103
108
disabled = { ! searchText }
104
109
onClick = { ( ) => dispatch ( { type : 'GO_TO_NEXT_SEARCH_RESULT' } ) }
105
- title = "Scroll to next search result" >
110
+ title = {
111
+ < React . Fragment >
112
+ Scroll to next search result (< kbd > Enter</ kbd > )
113
+ </ React . Fragment >
114
+ } >
106
115
< ButtonIcon type = "down" />
107
116
</ Button >
108
117
< Button
You can’t perform that action at this time.
0 commit comments