• Moe Ahmadi's avatar
    [NTP][Realbox] Allows realbox suggestions to be deleted using 'Enter' key · e44a32d3
    Moe Ahmadi authored
    crrev.com/c/2206222 broke this behavior by making the outer <div>
    focusable and preventing the inner <button> to which the click handler
    is attached to from gaining focus.
    
    This CL restores the original behavior by attaching the handlers to the
    outer focusable container. It also simplifies the a11y setup by making
    the outer container a real button and the inner container an unfocusable
    div.
    
    Bug: 1095549
    Change-Id: Iacc1d5f673545cd25cc93965463d57d7447a7ff3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2264801
    Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
    Commit-Queue: Tommy Li <tommycli@chromium.org>
    Auto-Submit: Moe Ahmadi <mahmadi@chromium.org>
    Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#782017}
    e44a32d3
local_ntp.js 77 KB