Skip to content

Commit

Permalink
Fix #8965: Dialog modal allow cut, copy, paste (#8967)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jul 7, 2022
1 parent dbac8bf commit 244012a
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -199,6 +199,10 @@ if (!PrimeFaces.utils) {
}
}
}
else if (event.ctrlKey) {
// #8965 allow cut, copy, paste
return;
}
else if (!target.is(document.body) && (target.zIndex() < zIndex && target.parent().zIndex() < zIndex)) {
event.preventDefault();
}
Expand Down

0 comments on commit 244012a

Please sign in to comment.