Commit 3c724bcd authored by David Tseng's avatar David Tseng Committed by Commit Bot

Re-enable editable text output for read only content editables.

Change-Id: If274eda790046a53dffb0f4d3724aaaa1904699f
Reviewed-on: https://chromium-review.googlesource.com/1096422
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarRaymes Khoury <raymes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569502}
parent c0f6559d
......@@ -972,6 +972,11 @@ CommandHandler.onEditCommand_ = function(command) {
if (!textEditHandler)
return true;
// Skip customized keys for read only text fields.
if (textEditHandler.node.restriction ==
chrome.automation.Restriction.READ_ONLY)
return true;
var isMultiline = AutomationPredicate.multiline(current.start.node);
switch (command) {
case 'previousCharacter':
......
......@@ -621,9 +621,6 @@ DesktopAutomationHandler.prototype = {
!AutomationUtil.isDescendantOf(target, voxTarget))
return false;
if (target.restriction == chrome.automation.Restriction.READ_ONLY)
return false;
if (!this.textEditHandler_ || this.textEditHandler_.node !== target) {
this.textEditHandler_ = editing.TextEditHandler.createForNode(target);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment