From d1406e1b8f53489e21bb2334bcca43fcf37b6036 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 27 Oct 2013 13:46:00 +0100 Subject: [PATCH] Fixed: editing textFields on different windows can clobber each others contents Was be caused by resignFirstResponder not checking that the input owner is self. Fixes #1983 --- AppKit/CPTextField.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index d76c02b63..dbcfb6637 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -692,7 +692,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); { #if PLATFORM(DOM) // We might have been the first responder without actually editing. - if (_isEditing) + if (_isEditing && CPTextFieldInputOwner === self) { var element = [self _inputElement], newValue = element.value,