From 0715cdc7d978db00c15b9a79cc21af8fd466174b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 24 Apr 2010 19:39:59 +0200 Subject: NEWT: Add missing return in recursive lock; Add MacOSX EVENT_KEY_TYPED --- src/newt/classes/com/jogamp/newt/Window.java | 1 + src/newt/native/NewtMacWindow.m | 1 + 2 files changed, 2 insertions(+) (limited to 'src/newt') diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index 6f585a20a..db1b694b9 100755 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -989,6 +989,7 @@ public abstract class Window implements NativeWindow Thread cur = Thread.currentThread(); if (owner == cur) { ++recursionCount; + return; } while (owner != null) { try { diff --git a/src/newt/native/NewtMacWindow.m b/src/newt/native/NewtMacWindow.m index 3d8d32a40..d8d59a7af 100755 --- a/src/newt/native/NewtMacWindow.m +++ b/src/newt/native/NewtMacWindow.m @@ -242,6 +242,7 @@ static jint mods2JavaMods(NSUInteger mods) - (void) keyUp: (NSEvent*) theEvent { [self sendKeyEvent: theEvent eventType: EVENT_KEY_RELEASED]; + [self sendKeyEvent: theEvent eventType: EVENT_KEY_TYPED]; } - (void) sendMouseEvent: (NSEvent*) event eventType: (jint) evType -- cgit v1.2.3