mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 808596 - Introduce key role. r=surkov
This commit is contained in:
parent
34ddc52c77
commit
4f54ad6ad9
@ -773,5 +773,9 @@ interface nsIAccessibleRole : nsISupports
|
||||
* An HTML definition <dd>
|
||||
*/
|
||||
const unsigned long ROLE_DEFINITION = 128;
|
||||
};
|
||||
|
||||
/**
|
||||
* A keyboard or keypad key.
|
||||
*/
|
||||
const unsigned long ROLE_KEY = 129;
|
||||
};
|
||||
|
@ -222,6 +222,17 @@ static nsRoleMapEntry sWAIRoleMaps[] =
|
||||
kGenericAccType,
|
||||
kNoReqStates
|
||||
},
|
||||
{ // key
|
||||
&nsGkAtoms::key,
|
||||
roles::KEY,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
ePressAction,
|
||||
eNoLiveAttr,
|
||||
kGenericAccType,
|
||||
kNoReqStates,
|
||||
eARIAPressed
|
||||
},
|
||||
{ // link
|
||||
&nsGkAtoms::link,
|
||||
roles::LINK,
|
||||
|
@ -778,7 +778,12 @@ enum Role {
|
||||
/**
|
||||
* Represent a definition in a definition list (dd in HTML)
|
||||
*/
|
||||
DEFINITION = 128
|
||||
DEFINITION = 128,
|
||||
|
||||
/**
|
||||
* Represent a keyboard or keypad key (ARIA role "key").
|
||||
*/
|
||||
KEY = 129
|
||||
};
|
||||
|
||||
} // namespace role
|
||||
|
@ -1047,3 +1047,11 @@ ROLE(DEFINITION,
|
||||
USE_ROLE_STRING,
|
||||
IA2_ROLE_PARAGRAPH,
|
||||
eNameFromSubtreeRule)
|
||||
|
||||
ROLE(KEY,
|
||||
"key",
|
||||
ATK_ROLE_PUSH_BUTTON,
|
||||
NSAccessibilityButtonRole,
|
||||
ROLE_SYSTEM_PUSHBUTTON,
|
||||
ROLE_SYSTEM_PUSHBUTTON,
|
||||
eNameFromSubtreeRule)
|
||||
|
Loading…
Reference in New Issue
Block a user