DescriptionOverhaul omnibox focus detection on Mac.
Rather than aiming to detect acquisition and loss of focus in
|field_|, just acknowledge that there are cases where |field_| has
focus but |model_| doesn't know. If |field_| has focus but no editing
has been done, then |model_| will take no action, so this is
reasonable.
Window resigning key just closes the popup, and doesn't affect
|model_| focus. Thus, there is no need to deal with acquiring focus
when the window becomes key again, and we can live fine within the
constraints of -*DidBeginEditing: and -*ShouldEndEditing:.
Added checks for |field_| being focussed in all the relevant places.
http://crbug.com/12338
Patch Set 1 #
Total comments: 4
Patch Set 2 : Address Pink's suggestion, add some color commentary. #
Messages
Total messages: 3 (0 generated)
|