File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const HotkeyTooltip: FC<{
25
25
optionKey ?: boolean
26
26
onClose ?: TooltipProps [ 'onClose' ]
27
27
onHotkey ?: ( ) => void
28
+ disableOnContentEditable ?: boolean
28
29
} > = ( {
29
30
text,
30
31
keys = [ ] ,
@@ -33,6 +34,7 @@ const HotkeyTooltip: FC<{
33
34
commandKey,
34
35
optionKey,
35
36
onHotkey = noop ,
37
+ disableOnContentEditable = false ,
36
38
} ) => {
37
39
const {
38
40
ua : { isMac } ,
@@ -56,7 +58,7 @@ const HotkeyTooltip: FC<{
56
58
{
57
59
enabled : ! ! keys . length ,
58
60
enableOnTags : [ 'INPUT' , 'TEXTAREA' ] ,
59
- enableOnContentEditable : true ,
61
+ enableOnContentEditable : ! disableOnContentEditable ,
60
62
} ,
61
63
[ onHotkey ]
62
64
)
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ const NavButtonGroup: FC = () => {
71
71
onHotkey = { back }
72
72
keys = { [ 'Left' ] }
73
73
commandKey
74
+ disableOnContentEditable
74
75
>
75
76
< IconButton disabled = { ! canBack } icon = "ArrowSmLeft" onClick = { back } />
76
77
</ HotkeyTooltip >
@@ -79,6 +80,7 @@ const NavButtonGroup: FC = () => {
79
80
onHotkey = { forward }
80
81
keys = { [ 'Right' ] }
81
82
commandKey
83
+ disableOnContentEditable
82
84
>
83
85
< IconButton
84
86
disabled = { ! canForward }
You can’t perform that action at this time.
0 commit comments