From 7a8195e54ccd13f5e9f817125bbb67449e4e5f7a Mon Sep 17 00:00:00 2001 From: daboe01 Date: Wed, 15 Jun 2016 22:55:48 +0200 Subject: [PATCH] fixed: cursor extended selections did not copy in safari --- AppKit/CPTextView/CPTextView.j | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 41fa65a46..e9ae6e5c6 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2378,7 +2378,9 @@ var _CPCopyPlaceholder = '-'; if (_CPNativeInputFieldActive) [self _endInputSessionWithString:_CPNativeInputField.innerHTML]; - _CPNativeInputField.innerHTML = ''; + // prevent the copy placeholder beeing removed by cursor keys + if (_CPNativeInputField.innerHTML != _CPCopyPlaceholder || _CPNativeInputFieldKeyPressedCalled) + _CPNativeInputField.innerHTML = ''; } _CPNativeInputFieldLastValue = _CPNativeInputField.innerHTML;