0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🐛 Fixed CMD+C focussing main form

fixes https://github.com/TryGhost/Ghost/issues/15563
This commit is contained in:
Simon Backx 2022-10-10 11:43:07 +02:00
parent 1a00c070d1
commit a2daf2e448

View file

@ -41,6 +41,12 @@ const MainForm = ({commentsCount}) => {
return;
}
if (event.metaKey || event.ctrlKey) {
// CMD on MacOS or CTRL
// Don't do anything
return;
}
let focusedElement = document.activeElement;
while (focusedElement && focusedElement.tagName === 'IFRAME') {
if (!focusedElement.contentDocument) {