summaryrefslogtreecommitdiff
path: root/vcl/source/window/winproc.cxx
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-11-26 15:38:44 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-11-26 15:38:44 +0000
commit7a356470bf7f530c72e1b52e5e003e70bd339f6a (patch)
treeb519a5bb716d78b32b75cebc3ec98da031aed04f /vcl/source/window/winproc.cxx
parent5cac64330940c570dd9739076084cef33562fec0 (diff)
#105224# send modkey events only if no hotkey was pressed
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r--vcl/source/window/winproc.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index ecbfb21e3c19..119e8214ca62 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: winproc.cxx,v $
*
- * $Revision: 1.72 $
+ * $Revision: 1.73 $
*
- * last change: $Author: ssa $ $Date: 2002-11-25 17:09:08 $
+ * last change: $Author: ssa $ $Date: 2002-11-26 16:38:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1973,8 +1973,12 @@ static void ImplHandleSalKeyMod( Window* pWindow, SalKeyModEvent* pEvent )
if ( !pChild )
return;
- CommandModKeyData data( pEvent->mnModKeyCode );
- ImplCallCommand( pChild, COMMAND_MODKEYCHANGE, &data );
+ // send modkey events only if useful data is available
+ if( pEvent->mnModKeyCode != 0 )
+ {
+ CommandModKeyData data( pEvent->mnModKeyCode );
+ ImplCallCommand( pChild, COMMAND_MODKEYCHANGE, &data );
+ }
}
// -----------------------------------------------------------------------