• dtseng's avatar
    Ensure focus() gets called when navigating to text fields · 2063c5ec
    dtseng authored
    This was a recent regression. Logic was added to make a top level editable a container (so that navigation would descend into it). However, we were previously using the container predicate to decide whether or not to set focus; this prevents focus() on roots which sometimes triggered other side effects such as focusing a descendant.
    
    Make the focus precondition check the structuralContainer predicate instead.
    
    BUG=640587
    TEST=chromevox_tests
    
    Review-Url: https://codereview.chromium.org/2273373002
    Cr-Commit-Position: refs/heads/master@{#414871}
    2063c5ec
background.js 22.5 KB