summaryrefslogtreecommitdiff
path: root/layout/xul/nsButtonBoxFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/xul/nsButtonBoxFrame.cpp')
-rw-r--r--layout/xul/nsButtonBoxFrame.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/layout/xul/nsButtonBoxFrame.cpp b/layout/xul/nsButtonBoxFrame.cpp
index ba0b7fb2a..3e0529e60 100644
--- a/layout/xul/nsButtonBoxFrame.cpp
+++ b/layout/xul/nsButtonBoxFrame.cpp
@@ -126,8 +126,6 @@ nsButtonBoxFrame::HandleEvent(nsPresContext* aPresContext,
break;
}
-// On mac, Return fires the default button, not the focused one.
-#ifndef XP_MACOSX
case eKeyPress: {
WidgetKeyboardEvent* keyEvent = aEvent->AsKeyboardEvent();
if (!keyEvent) {
@@ -142,7 +140,6 @@ nsButtonBoxFrame::HandleEvent(nsPresContext* aPresContext,
}
break;
}
-#endif
case eKeyUp: {
WidgetKeyboardEvent* keyEvent = aEvent->AsKeyboardEvent();