From 47b49b14a9af84d582f97ae04beebc7c968ea213 Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Thu, 14 Oct 1999 23:04:57 +0000 Subject: [PATCH] fix Shift+a does not produce A in editor problem. We need to clean up isShift before we send. r=pavlov --- widget/src/gtk/nsGtkEventHandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widget/src/gtk/nsGtkEventHandler.cpp b/widget/src/gtk/nsGtkEventHandler.cpp index 008c3e75f3ce..cc0becf27477 100644 --- a/widget/src/gtk/nsGtkEventHandler.cpp +++ b/widget/src/gtk/nsGtkEventHandler.cpp @@ -329,9 +329,10 @@ void InitKeyPressEvent(GdkEventKey *aGEK, else anEvent.charCode = 0; - if (anEvent.charCode) + if (anEvent.charCode) { anEvent.keyCode = 0; - else + anEvent.isShift = PR_FALSE; + } else anEvent.keyCode = nsPlatformToDOMKeyCode(aGEK); #if defined(DEBUG_akkana) || defined(DEBUG_pavlov)