• Christopher Grant's avatar
    VR: Prevent keyboard from showing with exit-VR prompt · 958b96f3
    Christopher Grant authored
    If the exit-VR prompt shows while content is editing text, we should
    hide the keyboard.  A side effect of this change is that, when the
    keyboard disappears, it notifies content that this has happened, and
    content loses focus.
    
    In the case of autofill settings, this means that if the user chooses
    autofill settings but dismisses the exit-VR prompt to return to their
    page, that the input field will no longer be focused for edit (and the
    keyboard won't be showing).  In the 2D case, the keyboard is also
    hidden, but the cursor is still blinking in the field.  Therefore, VR is
    not at parity with 2D, but this feels better than having the keyboard
    persist through VR modal dialogs.
    
    BUG=835483
    R=asimjour
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
    Change-Id: I753ec31273e2473a21ea5cd2c2dddf70c962f71a
    Reviewed-on: https://chromium-review.googlesource.com/1030873Reviewed-by: default avatarAmirhossein Simjour <asimjour@chromium.org>
    Commit-Queue: Christopher Grant <cjgrant@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#554786}
    958b96f3
content_element_unittest.cc 12.4 KB