• Elly Fong-Jones's avatar
    views: support Mac textfield-focus behavior · fa2d40dd
    Elly Fong-Jones authored
    On Mac, textfields always scroll to the start when gaining or losing focus;
    this change implements that by:
    
    1) On keyboard focus, doing a reversed SelectAll, so that the new selection
       "ends" at the logical start on Mac;
    2) In OnBlur(), moving the selection to the logical start if PlatformStyle
       calls for same
    
    Bug: 657558
    Change-Id: I81c01f6ae5a546f1abb51a28638091907379d04e
    Reviewed-on: https://chromium-review.googlesource.com/598122Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#491723}
    fa2d40dd
platform_style.cc 3.26 KB