From 257e006efa8e3d5c887887297a5c738322fae086 Mon Sep 17 00:00:00 2001 From: VH Date: Thu, 22 Jun 2023 15:56:23 +0700 Subject: [PATCH] Fix focus is lost if message deletion confirmation is made from keyboard --- src/components/Modal/BaseModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modal/BaseModal.js b/src/components/Modal/BaseModal.js index 431137e75b55..6d5bd5390416 100644 --- a/src/components/Modal/BaseModal.js +++ b/src/components/Modal/BaseModal.js @@ -101,7 +101,7 @@ class BaseModal extends PureComponent { return ( { - if (e && e.type === 'keydown' && e.key === 'Enter') { + if (e && e.key === 'Enter') { return; } this.props.onClose();