зеркало из https://github.com/mozilla/pjs.git
don't process menu events multiple times (do them only on keydown).
This commit is contained in:
Родитель
5c26e7e059
Коммит
13fd1d6811
|
@ -329,12 +329,14 @@ void nsMacMessagePump::DoMouseMove(EventRecord &anEvent)
|
|||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// DoKey
|
||||
//
|
||||
//
|
||||
// This is called for keydown, keyup, and key repeating events. So we need
|
||||
// to be careful not to do things twice.
|
||||
//-------------------------------------------------------------------------
|
||||
void nsMacMessagePump::DoKey(EventRecord &anEvent)
|
||||
{
|
||||
char theChar = (char)(anEvent.message & charCodeMask);
|
||||
if (anEvent.modifiers & cmdKey)
|
||||
if ( (anEvent.what == keyDown) && ((anEvent.modifiers & cmdKey) != 0) )
|
||||
{
|
||||
// do a menu key command
|
||||
long menuResult = ::MenuKey(theChar);
|
||||
|
|
Загрузка…
Ссылка в новой задаче