From 201d3ed28502d24febf52d56108883fdfb43823b Mon Sep 17 00:00:00 2001 From: tidy-dev <75402236+tidy-dev@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:53:33 -0500 Subject: [PATCH] Should have been an absolute check. --- app/src/ui/lib/tooltip.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/ui/lib/tooltip.tsx b/app/src/ui/lib/tooltip.tsx index e1df9ec1ad..b9c41ad5dc 100644 --- a/app/src/ui/lib/tooltip.tsx +++ b/app/src/ui/lib/tooltip.tsx @@ -387,7 +387,11 @@ export class Tooltip 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() }