From fb2a2d0f0bfe616af8b4f5744280d5611ab9a4d2 Mon Sep 17 00:00:00 2001 From: "saari%netscape.com" Date: Thu, 30 Sep 1999 01:44:42 +0000 Subject: [PATCH] Making the Mac key event generation code follow the new spec for autokeys generate keypress events. Brade has run this change on her machine for about a week, I tested it on my machine without any problems. Reviewed by Brade and Dagley. --- widget/src/mac/nsMacEventHandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widget/src/mac/nsMacEventHandler.cpp b/widget/src/mac/nsMacEventHandler.cpp index fece1670731f..6166b5fa7c1e 100644 --- a/widget/src/mac/nsMacEventHandler.cpp +++ b/widget/src/mac/nsMacEventHandler.cpp @@ -697,7 +697,6 @@ PRBool nsMacEventHandler::HandleKeyEvent(EventRecord& aOSEvent) break; case keyDown: - case autoKey: InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_DOWN); result = focusedWidget->DispatchWindowEvent(keyEvent); //if (result == PR_FALSE) // continue processing??? talk to Tague about this (key event spec) @@ -706,6 +705,11 @@ PRBool nsMacEventHandler::HandleKeyEvent(EventRecord& aOSEvent) result = focusedWidget->DispatchWindowEvent(keyEvent); } break; + + case autoKey: + InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_PRESS); + result = focusedWidget->DispatchWindowEvent(keyEvent); + break; } return result;