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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js

Issue 2399673005: Normalize non-breaking spaces into spaces (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js b/chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js
index 1d77e614387b0ab4bdf375bd6eec2234a66a6e10..eb37241cdc21a19e93d435bcc2e75543e124d1de 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/editable_text_base.js
@@ -311,6 +311,8 @@ cvox.ChromeVoxEditableTextBase.prototype.speak =
* @param {cvox.TextChangeEvent} evt The text change event.
*/
cvox.ChromeVoxEditableTextBase.prototype.changed = function(evt) {
+ // Normalize space characters.
+ evt.value = evt.value.replace('\u00a0', ' ');
if (!this.shouldDescribeChange(evt)) {
this.lastChangeDescribed = false;
return;
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/common/editable_text_test.unitjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698