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:
parent
1a00c070d1
commit
a2daf2e448
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue