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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js

Issue 2757623003: Initial support for accessible text fields and focus tracking in ARC++ (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
index e4bd58312b4268dcd0d7a081a0e1350efb10e6d0..4ad8639f2e446365a2d2e01561141fc0ecd5ef4f 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
@@ -79,8 +79,7 @@ TextFieldTextEditHandler.prototype = {
evt.type !== EventType.VALUE_CHANGED &&
evt.type !== EventType.FOCUS)
return;
- if (!evt.target.state.focused ||
- !evt.target.state.editable ||
+ if (!evt.target.state.editable ||
evt.target != this.node_)
return;
@@ -208,7 +207,7 @@ editing.TextEditHandler.createForNode = function(node) {
var testNode = node;
do {
- if (testNode.state[StateType.FOCUSED] && testNode.state[StateType.EDITABLE])
+ if (testNode.state[StateType.EDITABLE])
rootFocusedEditable = testNode;
testNode = testNode.parent;
} while (testNode);

Powered by Google App Engine
This is Rietveld 408576698