mirror of
https://github.com/desktop/desktop
synced 2024-09-19 08:02:22 +00:00
Should have been an absolute check.
This commit is contained in:
parent
f1ac8b4f3c
commit
201d3ed285
|
@ -387,7 +387,11 @@ export class Tooltip<T extends TooltipTarget> extends React.Component<
|
|||
}
|
||||
|
||||
private onKeyDown = (event: KeyboardEvent) => {
|
||||
if (event.key === 'Escape' && this.state.show && this.props.dismissable) {
|
||||
if (
|
||||
event.key === 'Escape' &&
|
||||
this.state.show &&
|
||||
this.props.dismissable !== false
|
||||
) {
|
||||
event.preventDefault()
|
||||
this.beginHideTooltip()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue