Skip to content
  • darin's avatar
    Reviewed by Dave. · b50226ef
    darin authored
    	- fixed 3127900 -- REGRESSION: text fields select all their text when clicked on with the mouse
    
            * kwq/KWQKHTMLPart.h: Add _firstResponderAtMouseDownTime.
            * kwq/KWQKHTMLPart.mm:
            (KWQKHTMLPart::khtmlMousePressEvent): Don't call makeFirstResponder: if it's already set.
            (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Using _firstResponderAtMouseDownTime, catch the
    	case where an NSTextField's editor was just created and became first responder. In those cases,
    	pass the mouseDown: to the text field, not the newly created editor. Even though it shouldn't make
    	a difference it does. Also don't makeFirstResponder: if it's already set.
            (KWQKHTMLPart::mouseDown): Set _firstResponderAtMouseDownTime.
    
            * kwq/KWQWidget.mm: (QWidget::setFocus): Don't call makeFirstResponder: if it's already set.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b50226ef