Bug 975381 - Use DOM_VK_RETURN/NS_VK_RETURN instead of DOM_VK_ENTER/NS_VK_ENTER in /calendar. r=philipp
This commit is contained in:
Родитель
1796a43ebb
Коммит
f1825b1764
|
@ -2203,7 +2203,7 @@ function attachmentLinkKeyPress(event) {
|
|||
case kKE.DOM_VK_DELETE:
|
||||
deleteAttachment();
|
||||
break;
|
||||
case kKE.DOM_VK_ENTER:
|
||||
case kKE.DOM_VK_RETURN:
|
||||
openAttachment();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -168,8 +168,7 @@
|
|||
<body><![CDATA[
|
||||
if (event.type == "click" ||
|
||||
(event.type == "keypress" &&
|
||||
(event.keyCode == event.DOM_VK_ENTER ||
|
||||
event.keyCode == event.DOM_VK_RETURN))) {
|
||||
event.keyCode == event.DOM_VK_RETURN)) {
|
||||
let detailsEvent = document.createEvent('Events');
|
||||
detailsEvent.initEvent('itemdetails', true, false);
|
||||
this.dispatchEvent(detailsEvent);
|
||||
|
|
|
@ -235,8 +235,7 @@
|
|||
<label id="calendar-invitations-label"
|
||||
class="text-link"
|
||||
onclick="openInvitationsDialog()"
|
||||
onkeypress="if (event.keyCode == event.VK_ENTER ||
|
||||
event.keyCode == event.VK_RETURN) {
|
||||
onkeypress="if (event.keyCode == event.VK_RETURN) {
|
||||
openInvitationsDialog(); }"/>
|
||||
</statusbarpanel>
|
||||
</statusbar>
|
||||
|
|
Загрузка…
Ссылка в новой задаче