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.

This commit is contained in:
saari%netscape.com 1999-09-30 01:44:42 +00:00
Родитель 5f056b6037
Коммит fb2a2d0f0b
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -697,7 +697,6 @@ PRBool nsMacEventHandler::HandleKeyEvent(EventRecord& aOSEvent)
break; break;
case keyDown: case keyDown:
case autoKey:
InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_DOWN); InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_DOWN);
result = focusedWidget->DispatchWindowEvent(keyEvent); result = focusedWidget->DispatchWindowEvent(keyEvent);
//if (result == PR_FALSE) // continue processing??? talk to Tague about this (key event spec) //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); result = focusedWidget->DispatchWindowEvent(keyEvent);
} }
break; break;
case autoKey:
InitializeKeyEvent(keyEvent,aOSEvent,focusedWidget,NS_KEY_PRESS);
result = focusedWidget->DispatchWindowEvent(keyEvent);
break;
} }
return result; return result;