diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index eacada6d..5c50865e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,6 +3,7 @@ ### 2.30.6 – `Fix` – Fix the display of ‘Convert To’ near blocks that do not have the ‘conversionConfig.export’ rule specified +– `Fix` – The Plus button does not appear when the editor is loaded in an iframe in Chrome ### 2.30.5 diff --git a/src/components/utils/keyboard.ts b/src/components/utils/keyboard.ts index 62586d57..65d8e614 100644 --- a/src/components/utils/keyboard.ts +++ b/src/components/utils/keyboard.ts @@ -47,8 +47,15 @@ export async function getKeyboardKeyForCode(code: string, fallback: string): Pro return fallback; } - const map = await keyboard.getLayoutMap(); - const key = map.get(code); + try { + const map = await keyboard.getLayoutMap(); - return key || fallback; + const key = map.get(code); + + return key || fallback; + } catch (e) { + console.error(e); + + return fallback; + } }