From 4b5d7eeadada145d42e8d9f2ef8093fb0eb03648 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Mon, 18 Aug 2008 12:05:17 +0000 Subject: INTEGRATION: CWS vcl30stop2 (1.99.2); FILE MERGED 2008/07/24 13:26:37 pl 1.99.2.1: #i92081# MOD1 and MOD3 also should not create input in an Edit field --- vcl/source/control/edit.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 5cc34a7da82d..4ed4b0968116 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: edit.cxx,v $ - * $Revision: 1.100 $ + * $Revision: 1.101 $ * * This file is part of OpenOffice.org. * @@ -383,7 +383,10 @@ BOOL Edit::IsCharInput( const KeyEvent& rKeyEvent ) { // In the future we must use new Unicode functions for this xub_Unicode cCharCode = rKeyEvent.GetCharCode(); - return ((cCharCode >= 32) && (cCharCode != 127) && !rKeyEvent.GetKeyCode().IsMod2()); + return ((cCharCode >= 32) && (cCharCode != 127) && + !rKeyEvent.GetKeyCode().IsMod3() && + !rKeyEvent.GetKeyCode().IsMod2() && + !rKeyEvent.GetKeyCode().IsMod1() ); } // ----------------------------------------------------------------------- -- cgit