diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-11-26 15:38:44 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-11-26 15:38:44 +0000 |
commit | 7a356470bf7f530c72e1b52e5e003e70bd339f6a (patch) | |
tree | b519a5bb716d78b32b75cebc3ec98da031aed04f /vcl/source/window/winproc.cxx | |
parent | 5cac64330940c570dd9739076084cef33562fec0 (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.cxx | 12 |
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 ); + } } // ----------------------------------------------------------------------- |