• Dominic Mazzoni's avatar
    An accessible click action on an element should focus the element too. · a3680df5
    Dominic Mazzoni authored
    When you click on a focusable element with the mouse, the element gets
    focused in addition to receiving click events.
    
    In contrast, this wasn't always happening when using accessibility APIs to
    click on an element. Note that on many platforms, assistive technology
    was already triggering a focus action, when the user has enabled automatic
    focus. In those cases, this change will have no effect. If the user turns off
    automatic focusing in their AT, this change will have the effect of focusing
    an element before clicking on it.
    
    This bug was reported on Android. Prior to Android O, TalkBack used to
    send a click event when the user double-tapped. Now, TalkBack sends
    ACTION_CLICK, which results in clicking elements without first focusing them.
    
    Bug: 791285, 901511
    Change-Id: I0ae7664c4e80bd806e008fb86740fbae547ef582
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864416Reviewed-by: default avatarAlice Boxhall <aboxhall@chromium.org>
    Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#710232}
    a3680df5
ax_object.cc 129 KB