Merge pull request #2559 from daboe01/onpaste-ff-fix

Fixed: CPTextView's onpaste handler used non-standard window.event
This commit is contained in:
Alexandre Wilhelm
2017-09-07 18:20:32 -07:00
committed by GitHub
+1 -1
View File
@@ -2606,7 +2606,7 @@ var _CPCopyPlaceholder = '-';
isPlain = YES;
// this is the rich chrome / FF codepath (where we can use RTF directly)
if ((richtext = nativeClipboard.getData('text/rtf')) && !(!!window.event.shiftKey) && !isPlain)
if ((richtext = nativeClipboard.getData('text/rtf')) && !(!!(e.originalEvent || e).shiftKey) && !isPlain)
{
e.preventDefault();