From b152d3a29bdba77efcbc3db1ac55ded06e8a5ea8 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Fri, 25 Mar 2005 18:08:02 +0000 Subject: [PATCH] make auto-repeat work with Japanese input. patch by waverider. r=joshmoz sr=smfr b=233288 git-svn-id: svn://10.0.0.236/trunk@171211 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsChildView.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index 6c699c87eda..152178894e3 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -3235,7 +3235,7 @@ static void ConvertCocoaKeyEventToMacEvent(NSEvent* cocoaEvent, EventRecord& mac return; } - if (!mInComposition && nonDeadKeyPress) + if (nonDeadKeyPress) { // Fire a key press. nsKeyEvent geckoEvent; @@ -3263,7 +3263,8 @@ static void ConvertCocoaKeyEventToMacEvent(NSEvent* cocoaEvent, EventRecord& mac } // do we need to end composition if we got here by arrow key press or other? - isKeyEventHandled = mGeckoChild->DispatchWindowEvent(geckoEvent); + if (!mInComposition) + isKeyEventHandled = mGeckoChild->DispatchWindowEvent(geckoEvent); // only force this through cocoa if this special-key was not handled by gecko mLastKeyEventWasSentToCocoa = !isKeyEventHandled;