Merge branch 'master' into fix/oss-build

This commit is contained in:
Adria Navarro 2024-04-11 17:01:41 +02:00 committed by GitHub
commit c33dc1f397
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "2.23.3", "version": "2.23.4",
"npmClient": "yarn", "npmClient": "yarn",
"packages": [ "packages": [
"packages/*", "packages/*",

View File

@ -137,8 +137,12 @@
const activeTag = document.activeElement?.tagName.toLowerCase() const activeTag = document.activeElement?.tagName.toLowerCase()
const inCodeEditor = const inCodeEditor =
document.activeElement?.classList?.contains("cm-content") document.activeElement?.classList?.contains("cm-content")
const inPosthogSurvey =
document.activeElement?.classList?.[0]?.startsWith("PostHogSurvey")
if ( if (
(inCodeEditor || ["input", "textarea"].indexOf(activeTag) !== -1) && (inCodeEditor ||
inPosthogSurvey ||
["input", "textarea"].indexOf(activeTag) !== -1) &&
e.key !== "Escape" e.key !== "Escape"
) { ) {
return return