From 63815eb5c20340f71725da477d42db2a0103b0bd Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 7 Sep 2017 19:19:19 +0200 Subject: [PATCH] fixed: onpaste handler used window.event (non-standard) broke paste on FF/win --- AppKit/CPTextView/CPTextView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 8ad4e31f9..cdc4a4af4 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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();