aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Li2012-02-13 12:12:03 (EST)
committerSilenio Quarti2012-02-14 17:32:03 (EST)
commit08a85b2d7f54fd0c76a75ac897e2d35ea2f105b9 (patch)
treed3acf122ba59f090e4ff438bc6cbf7612ed0de09
parentcee88c2dc9afb56731bf418f6fef650653e3a5c1 (diff)
downloadorg.eclipse.orion.client-08a85b2d7f54fd0c76a75ac897e2d35ea2f105b9.zip
org.eclipse.orion.client-08a85b2d7f54fd0c76a75ac897e2d35ea2f105b9.tar.gz
org.eclipse.orion.client-08a85b2d7f54fd0c76a75ac897e2d35ea2f105b9.tar.bz2
Bug 371250 - Accessibility of Orion editor/editingv20120214-2232
-rw-r--r--bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js b/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js
index 60e9030..3d24e2e 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/textview/textView.js
@@ -3834,6 +3834,7 @@ define("orion/textview/textView", ['orion/textview/textModel', 'orion/textview/k
viewDiv.style.margin = "0px";
viewDiv.style.MozOutline = "none";
viewDiv.style.outline = "none";
+ viewDiv.setAttribute("role", "application");
body.appendChild(viewDiv);
var scrollDiv = frameDocument.createElement("DIV");
@@ -3898,6 +3899,8 @@ define("orion/textview/textView", ['orion/textview/textModel', 'orion/textview/k
if (!isPad) {
clientDiv.contentEditable = "true";
}
+ clientDiv.setAttribute("role", "textbox");
+ clientDiv.setAttribute("aria-multiline", "true");
var metrics = this._metrics = this._calculateMetrics();
if (isIE) {
body.style.lineHeight = (metrics.lineHeight - (metrics.lineTrim.top + metrics.lineTrim.bottom)) + "px";