From aa8d0c70b5833476d73adeb00f75e294f008e572 Mon Sep 17 00:00:00 2001 From: "davidm%netscape.com" Date: Tue, 6 Apr 1999 01:41:02 +0000 Subject: [PATCH] Added code to pass handle keyevents in modal windows git-svn-id: svn://10.0.0.236/trunk@26401 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsAppShell.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/mac/nsAppShell.cpp b/mozilla/widget/src/mac/nsAppShell.cpp index cedb66071fc..97c3becc4ec 100644 --- a/mozilla/widget/src/mac/nsAppShell.cpp +++ b/mozilla/widget/src/mac/nsAppShell.cpp @@ -243,7 +243,12 @@ nsIWidget *aWidget, where == inGoAway || where == inZoomIn || where == inZoomOut )) *aForWindow = PR_TRUE; break; - + case keyDown: + case keyUp: + case autoKey: + if ( window == eventWindow ) + *aForWindow = PR_TRUE; + break; case updateEvt: // always let update events through, because if we don't handle them, we're // doomed!