Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1215)

Issue 1952803002: Use forceClickOnCurrentItem to mean doDefault action rather than performDefaul\ (Closed)

Created:
4 years, 7 months ago by David Tseng
Modified:
4 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2704
Target Ref:
refs/pending/branch-heads/2704
Project:
chromium
Visibility:
Public.

Description

Use forceClickOnCurrentItem to mean doDefault action rather than performDefaul\ tAction When navigating to a new site with the below steps, we accidentally force focu\ s back onto the omnibox. - ctrl+l - type an address - hit enter result: we stay in compat mode and we see focus is on the omnibox. This is because: - when we place focus via ctrl+l, we switch to compat mode - that results in a switch to the classic keymap -UU-:----F1 cl_descriptionSCqLE6 Top L1 (Fundamental) ------------------# Enter a description of the change. Merge to m51: Use forceClickOnCurrentItem to mean doDefault action rather than performDefaultAction When navigating to a new site with the below steps, we accidentally force focus back onto the omnibox. - ctrl+l - type an address - hit enter result: we stay in compat mode and we see focus is on the omnibox. This is because: - when we place focus via ctrl+l, we switch to compat mode - that results in a switch to the classic keymap - the classic keymap binds the enter key to performDefaultAction - in cvox2/background/backgorund.js, performDefaultAction does a |doDefault| action which sends a click - after entering an address, we "click" the address bar - this is racey with the focus generated by the webview Solve this by using the forceClickOnCurrentItem command (which is mapped to Cvox+space) to mean doDefault. This matches classic behavior. performDefaultAction in classic simply meant placing focus correctly when encountering internal links. TEST=navigate between sites via the above reproduction; ensure classic is on and working. BUG=605980 Review-Url: https://codereview.chromium.org/1915603002 Cr-Commit-Position: refs/heads/master@{#390248} (cherry picked from commit 5f2b437436f41145c774d485602bd61edefc443c) Committed: https://chromium.googlesource.com/chromium/src/+/859c7c4f180588db01d041093731ba701a9019da

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M chrome/browser/resources/chromeos/chromevox/chromevox/background/keymaps/next_keymap.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
David Tseng
4 years, 7 months ago (2016-05-04 20:47:35 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
859c7c4f180588db01d041093731ba701a9019da.

Powered by Google App Engine
This is Rietveld 408576698