Bug 121114. Make links in properties windows keyboard accessible. r=bzbarsky, sr=hewitt.

git-svn-id: svn://10.0.0.236/trunk@118908 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com 2002-04-13 05:10:28 +00:00
parent f8c0c26eb3
commit 39b21312e8
4 changed files with 24 additions and 0 deletions

View File

@ -44,6 +44,12 @@
text-decoration : underline;
}
.text-link:focus
{
color : red;
-moz-outline: 1px dotted invert;
}
.text-link:hover
{
cursor : pointer;

View File

@ -49,6 +49,11 @@
text-decoration: underline;
}
.text-link:focus {
color: red;
-moz-outline: 1px dotted invert;
}
.text-link:hover {
cursor: pointer;
}

View File

@ -47,5 +47,13 @@
"/>
</handlers>
</binding>
<binding id="text-link" extends="chrome://global/content/bindings/text.xml#text-label">
<handlers>
<handler event="keypress" keycode="VK_ENTER" action="this.click()" />
<handler event="keypress" keycode="VK_RETURN" action="this.click()" />
</handlers>
</binding>
</bindings>

View File

@ -584,6 +584,11 @@ label {
-moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
}
label.text-link {
-moz-binding: url("chrome://global/content/bindings/text.xml#text-link");
-moz-user-focus: normal;
}
label[control] {
-moz-binding: url("chrome://global/content/bindings/text.xml#label-control");
}