Fixed: #1273 problem with shift enter on shop window
This commit is contained in:
parent
d2bc4b288a
commit
5f98c48e13
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue