summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-08-18 12:05:17 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-08-18 12:05:17 +0000
commit4b5d7eeadada145d42e8d9f2ef8093fb0eb03648 (patch)
treed4138c18cf6ce675612e97d64d6ca169a3c12363 /vcl/source
parent66383b9796cdaf1e553eb3420ecfcf7f479f05c1 (diff)
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
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/edit.cxx7
1 files changed, 5 insertions, 2 deletions
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() );
}
// -----------------------------------------------------------------------