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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher.js

Issue 2121413002: Support selection and copying over non-editable content in ChromeVox Next. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 5 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/chromevox/injected/event_watcher.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher.js
index cbc4fa7c314c6cdc7de28cbd67b29b7a09db9f60..db0f689bcc438bf4a58d1475e3762394aae99602 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/event_watcher.js
@@ -888,8 +888,6 @@ cvox.ChromeVoxEventWatcher.clipboardEventWatcher = function(evt) {
return true;
}
- cvox.ChromeVox.tts.speak(Msgs.getMsg(evt.type).toLowerCase(),
- cvox.QueueMode.QUEUE);
var text = '';
switch (evt.type) {
case 'paste':
@@ -900,7 +898,8 @@ cvox.ChromeVoxEventWatcher.clipboardEventWatcher = function(evt) {
text = window.getSelection().toString();
break;
}
- cvox.ChromeVox.tts.speak(text, cvox.QueueMode.QUEUE);
+ cvox.ChromeVox.tts.speak(
+ Msgs.getMsg(evt.type, [text]), cvox.QueueMode.QUEUE);
cvox.ChromeVox.navigationManager.clearPageSel();
return true;
};

Powered by Google App Engine
This is Rietveld 408576698