Merge branch 'master' into fix/oss-build
This commit is contained in:
commit
c33dc1f397
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.23.3",
|
"version": "2.23.4",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue