From a71b5567c97c6dd7869df59805adcdc93ca5dc1e Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Fri, 15 Oct 1999 14:56:33 +0000 Subject: [PATCH] fixes to handle for control keys (off by 1) (bug #15693) r=kin@netscape.com --- widget/src/mac/nsMacEventHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/mac/nsMacEventHandler.cpp b/widget/src/mac/nsMacEventHandler.cpp index 74dabd9f6b9..e6baca06ec6 100644 --- a/widget/src/mac/nsMacEventHandler.cpp +++ b/widget/src/mac/nsMacEventHandler.cpp @@ -664,9 +664,9 @@ void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent, EventRecord& a if ( aKeyEvent.charCode <= 26 ) { if ( aKeyEvent.isShift ) - aKeyEvent.charCode += 'A'; + aKeyEvent.charCode += 'A' - 1; else - aKeyEvent.charCode += 'a'; + aKeyEvent.charCode += 'a' - 1; } } else