Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-11 16:21:33 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-11 16:21:33 +0400
commitf35a9328e000ea26c7ab08a7386c45645a106158 (patch)
tree5d74d5d1cb21a77785ce946b0c57beba735c3779 /intern/ghost
parenta19f7899fbc71b696ee803f47df3c9ce1657d09b (diff)
Fix for previous fix, not sure it will cause issues in practice but better be
sure to avoid invalid memory access.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_WindowCocoa.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 9e01fdbf332..b8d52a2b4ff 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -283,6 +283,8 @@ extern "C" {
// The trick to prevent Cocoa from complaining (beeping)
- (void)keyDown:(NSEvent *)event
{
+ systemCocoa->handleKeyEvent(event);
+
/* Start or continue composing? */
if ([[event characters] length] == 0 ||
[[event charactersIgnoringModifiers] length] == 0 ||
@@ -297,9 +299,8 @@ extern "C" {
[self interpretKeyEvents:events]; // calls insertText
[events removeObject:event];
[events release];
+ return;
}
-
- systemCocoa->handleKeyEvent(event);
}
- (void)keyUp:(NSEvent *)event