From 87868acecdd4a27bbdf1cef67e80d7e60d57d4bb Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 27 Jun 2015 13:46:31 +0200 Subject: [PATCH] formatitng --- AppKit/CPTextView/CPTextView.j | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 046497c4f..104d95f9a 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2147,6 +2147,14 @@ var _CPCopyPlaceholder = '-'; { _CPNativeInputField = document.createElement("div"); _CPNativeInputField.contentEditable = YES; + _CPNativeInputField.style.width="64px"; + _CPNativeInputField.style.zIndex = 10000; + _CPNativeInputField.style.position = "absolute"; + _CPNativeInputField.style.visibility = "visible"; + _CPNativeInputField.style.padding = "0px"; + _CPNativeInputField.style.margin = "0px"; + _CPNativeInputField.style.whiteSpace = "pre"; + _CPNativeInputField.style.outline = "0px solid transparent"; _CPNativeInputField.addEventListener("keyup", function(e) { @@ -2233,25 +2241,6 @@ var _CPCopyPlaceholder = '-'; return false; }, true); // capture mode - if (CPBrowserIsEngine(CPGeckoBrowserEngine)) - _CPNativeInputField.addEventListener("input", function() { - if(_CPNativeInputFieldActive) - setTimeout(function(){ - if (_CPNativeInputField.innerHTML.length > 1) - [self cancelCurrentInputSessionIfNeeded]; - }, 500); - return false; - }, true) - - _CPNativeInputField.style.width="64px"; - _CPNativeInputField.style.zIndex = 10000; - _CPNativeInputField.style.position = "absolute"; - _CPNativeInputField.style.visibility = "visible"; - _CPNativeInputField.style.padding = "0px"; - _CPNativeInputField.style.margin = "0px"; - _CPNativeInputField.style.whiteSpace = "pre"; - _CPNativeInputField.style.outline = "0px solid transparent"; - _CPNativeInputField.onpaste = function(e) { _CPNativeInputFieldWasCopyPaste = YES;