From bc1ea74b99e88593969f33ecd690adfd8a12b3c0 Mon Sep 17 00:00:00 2001 From: Max Li Date: Tue, 12 Nov 2013 19:56:24 -0500 Subject: [PATCH] Bug 933393 - [AccessFu] Utter selection changes. r=eeejay --HG-- extra : rebase_source : 2997b101df0cc63aba3e94b60ebe63c0db7eb3b7 --- accessible/src/jsat/EventManager.jsm | 5 +++++ accessible/src/jsat/OutputGenerator.jsm | 1 + dom/locales/en-US/chrome/accessibility/AccessFu.properties | 1 + 3 files changed, 7 insertions(+) diff --git a/accessible/src/jsat/EventManager.jsm b/accessible/src/jsat/EventManager.jsm index 4ed05e1652a..781b647e431 100644 --- a/accessible/src/jsat/EventManager.jsm +++ b/accessible/src/jsat/EventManager.jsm @@ -183,6 +183,11 @@ this.EventManager.prototype = { Presentation. actionInvoked(aEvent.accessible, event.isEnabled ? 'check' : 'uncheck')); + } else if (event.state == Ci.nsIAccessibleStates.STATE_SELECTED) { + this.present( + Presentation. + actionInvoked(aEvent.accessible, + event.isEnabled ? 'select' : 'unselect')); } break; } diff --git a/accessible/src/jsat/OutputGenerator.jsm b/accessible/src/jsat/OutputGenerator.jsm index 3a7ecec1f53..1605d1e400c 100644 --- a/accessible/src/jsat/OutputGenerator.jsm +++ b/accessible/src/jsat/OutputGenerator.jsm @@ -441,6 +441,7 @@ this.UtteranceGenerator = { check: 'checkAction', uncheck: 'uncheckAction', select: 'selectAction', + unselect: 'unselectAction', open: 'openAction', close: 'closeAction', switch: 'switchAction', diff --git a/dom/locales/en-US/chrome/accessibility/AccessFu.properties b/dom/locales/en-US/chrome/accessibility/AccessFu.properties index 3d3560ab5e7..9e923770db6 100644 --- a/dom/locales/en-US/chrome/accessibility/AccessFu.properties +++ b/dom/locales/en-US/chrome/accessibility/AccessFu.properties @@ -127,6 +127,7 @@ pressAction = pressed checkAction = checked uncheckAction = unchecked selectAction = selected +unselectAction = unselected openAction = opened closeAction = closed switchAction = switched