mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 720148 - ARIA button should expose press action, r=surkov
This commit is contained in:
parent
e9dd77e37e
commit
8f45182bfa
@ -105,7 +105,7 @@ nsRoleMapEntry nsARIAMap::gWAIRoleMap[] =
|
||||
roles::PUSHBUTTON,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
eClickAction,
|
||||
ePressAction,
|
||||
eNoLiveAttr,
|
||||
kNoReqStates,
|
||||
eARIAPressed
|
||||
|
@ -78,6 +78,7 @@ enum EActionRule
|
||||
eNoAction,
|
||||
eActivateAction,
|
||||
eClickAction,
|
||||
ePressAction,
|
||||
eCheckUncheckAction,
|
||||
eExpandAction,
|
||||
eJumpAction,
|
||||
|
@ -1828,6 +1828,10 @@ nsAccessible::GetActionName(PRUint8 aIndex, nsAString& aName)
|
||||
aName.AssignLiteral("click");
|
||||
return NS_OK;
|
||||
|
||||
case ePressAction:
|
||||
aName.AssignLiteral("press");
|
||||
return NS_OK;
|
||||
|
||||
case eCheckUncheckAction:
|
||||
if (states & states::CHECKED)
|
||||
aName.AssignLiteral("uncheck");
|
||||
|
@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
ID: "button",
|
||||
actionName: "click",
|
||||
actionName: "press",
|
||||
events: CLICK_EVENTS
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user