Bug 933393 - [AccessFu] Utter selection changes. r=eeejay

--HG--
extra : rebase_source : 2997b101df0cc63aba3e94b60ebe63c0db7eb3b7
This commit is contained in:
Max Li 2013-11-12 19:56:24 -05:00
parent 10e06f19d5
commit bc1ea74b99
3 changed files with 7 additions and 0 deletions

View File

@ -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;
}

View File

@ -441,6 +441,7 @@ this.UtteranceGenerator = {
check: 'checkAction',
uncheck: 'uncheckAction',
select: 'selectAction',
unselect: 'unselectAction',
open: 'openAction',
close: 'closeAction',
switch: 'switchAction',

View File

@ -127,6 +127,7 @@ pressAction = pressed
checkAction = checked
uncheckAction = unchecked
selectAction = selected
unselectAction = unselected
openAction = opened
closeAction = closed
switchAction = switched