Fixed: #1273 problem with shift enter on shop window

This commit is contained in:
vl 2011-04-21 16:39:23 +02:00
parent 5407fe2518
commit 277fab9863

View file

@ -359,7 +359,7 @@ bool CCocoaEventEmitter::processMessage(NSEvent* event, CEventServer* server)
// push the key press event to the event server // push the key press event to the event server
server->postEvent(new NLMISC::CEventKeyDown( server->postEvent(new NLMISC::CEventKeyDown(
virtualKeycodeToNelKey([event keyCode]), virtualKeycodeToNelKey([event keyCode]),
modifierFlagsToNelKeyButton([event modifierFlags]), modifiers,
[event isARepeat] == NO, this)); [event isARepeat] == NO, this));
// if this was a text event // if this was a text event
@ -372,7 +372,7 @@ bool CCocoaEventEmitter::processMessage(NSEvent* event, CEventServer* server)
// push the text event to event server as well // push the text event to event server as well
server->postEvent(new NLMISC::CEventChar( server->postEvent(new NLMISC::CEventChar(
ucstr[0], NLMISC::noKeyButton, this)); ucstr[0], modifiers, this));
} }
break; break;
} }
@ -381,7 +381,7 @@ bool CCocoaEventEmitter::processMessage(NSEvent* event, CEventServer* server)
// push the key release event to the event server // push the key release event to the event server
server->postEvent(new NLMISC::CEventKeyUp( server->postEvent(new NLMISC::CEventKeyUp(
virtualKeycodeToNelKey([event keyCode]), virtualKeycodeToNelKey([event keyCode]),
modifierFlagsToNelKeyButton([event modifierFlags]), this)); modifiers, this));
break; break;
} }
case NSFlagsChanged:break; case NSFlagsChanged:break;