File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export default function GenericLink(props) {
19
19
enforceA,
20
20
onClick,
21
21
onMouseDown,
22
+ onKeyDown,
22
23
openNewTab,
23
24
replace,
24
25
routerLinkType,
@@ -37,6 +38,7 @@ export default function GenericLink(props) {
37
38
href = { to }
38
39
onClick = { onClick }
39
40
onMouseDown = { onMouseDown }
41
+ onKeyDown = { onKeyDown }
40
42
rel = "noopener noreferrer"
41
43
target = { openNewTab ? '_blank' : '' }
42
44
>
@@ -72,6 +74,7 @@ GenericLink.defaultProps = {
72
74
enforceA : false ,
73
75
onClick : null ,
74
76
onMouseDown : null ,
77
+ onKeyDown : null ,
75
78
openNewTab : false ,
76
79
replace : false ,
77
80
to : '' ,
@@ -83,6 +86,7 @@ GenericLink.propTypes = {
83
86
enforceA : PT . bool ,
84
87
onClick : PT . func ,
85
88
onMouseDown : PT . func ,
89
+ onKeyDown : PT . func ,
86
90
openNewTab : PT . bool ,
87
91
replace : PT . bool ,
88
92
routerLinkType : PT . func . isRequired ,
You can’t perform that action at this time.
0 commit comments