• Moe Ahmadi's avatar
    Local NTP, Realbox: Remember pressing 'Enter' when results are not ready · 892ef7a4
    Moe Ahmadi authored
    This CL adds logic to "remember" the user pressing 'Enter' when
    autocomplete matches are stale. This happens if the user types too fast
    and presses 'Enter' immediately. Currently, the realbox either does nothing
    or navigates to a stale result. After this change, the realbox does nothing
    until up-to-date results have arrived. it then navigates to the default
    match, if one exists, assuming that navigation to the default match was the
    user intent, signaled by typing too fast and pressing 'Enter'.
    
    Bug: 1024109
    Change-Id: I67e434419e586d3488b1239b9fa37da8aaa4fec4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928214
    Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
    Reviewed-by: default avatarDan Beam <dbeam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#718302}
    892ef7a4
local_ntp.js 67.4 KB