Changeset 44164 in webkit
- Timestamp:
- May 26, 2009 4:57:23 PM (15 years ago)
- Location:
- trunk/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r44158 r44164 1 2009-05-26 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 - fix <rdar://problem/6922371> REGRESSION (r43973): Can't type first 6 character with an umlaut, circumflex, or accent in Mail or in a wiki 7 8 * WebView/WebHTMLView.mm: 9 (isTextInput): Moved here. 10 (isInPasswordField): Moved here. 11 (-[WebHTMLView becomeFirstResponder]): Update the exposeInputContext 12 flag and let NSApplication update the input manager with the new input 13 context if necessary. 14 (-[WebHTMLView _updateSelectionForInputManager]): Changed to use the 15 NSApp global instead of +[NSApplication sharedApplication]. 16 1 17 2009-05-26 Mark Rowe <mrowe@apple.com> 2 18 -
trunk/WebKit/mac/WebView/WebHTMLView.mm
r43973 r44164 3627 3627 } 3628 3628 3629 // Utility function to make sure we don't return anything through the NSTextInput 3630 // API when an editable region is not currently focused. 3631 static BOOL isTextInput(Frame* coreFrame) 3632 { 3633 return coreFrame && !coreFrame->selection()->isNone() && coreFrame->selection()->isContentEditable(); 3634 } 3635 3636 static BOOL isInPasswordField(Frame* coreFrame) 3637 { 3638 return coreFrame && coreFrame->selection()->isInPasswordField(); 3639 } 3640 3629 3641 - (BOOL)becomeFirstResponder 3630 3642 { … … 3639 3651 if (!frame) 3640 3652 return YES; 3641 3653 3654 BOOL exposeInputContext = isTextInput(frame) && !isInPasswordField(frame); 3655 if (exposeInputContext != _private->exposeInputContext) { 3656 _private->exposeInputContext = exposeInputContext; 3657 [NSApp updateWindows]; 3658 } 3659 3642 3660 frame->editor()->setStartNewKillRingSequence(true); 3643 3661 … … 5484 5502 } 5485 5503 5486 // Utility function to make sure we don't return anything through the NSTextInput5487 // API when an editable region is not currently focused.5488 static BOOL isTextInput(Frame* coreFrame)5489 {5490 return coreFrame && !coreFrame->selection()->isNone() && coreFrame->selection()->isContentEditable();5491 }5492 5493 static BOOL isInPasswordField(Frame* coreFrame)5494 {5495 return coreFrame && coreFrame->selection()->isInPasswordField();5496 }5497 5498 5504 - (NSTextInputContext *)inputContext 5499 5505 { … … 5856 5862 // Let AppKit cache a potentially input context. 5857 5863 _private->exposeInputContext = exposeInputContext; 5858 [ [NSApplication sharedApplication]updateWindows];5864 [NSApp updateWindows]; 5859 5865 } 5860 5866
Note: See TracChangeset
for help on using the changeset viewer.