diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-11-25 16:12:28 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-11-25 16:12:28 +0000 |
commit | 3e5bc2d3121bc21a24d69807e5e5a940a0a07063 (patch) | |
tree | 2993a5d6aeb497c590577a07a2538d7a9f19c55e /vcl/source/window/winproc.cxx | |
parent | e377bca1aeb088d62c2a5ed5e55f428ae1524b3e (diff) |
#105224# support extended modifier keys
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r-- | vcl/source/window/winproc.cxx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index ca85f56bf50f..ecbfb21e3c19 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: winproc.cxx,v $ * - * $Revision: 1.71 $ + * $Revision: 1.72 $ * - * last change: $Author: ssa $ $Date: 2002-11-25 11:39:23 $ + * last change: $Author: ssa $ $Date: 2002-11-25 17:09:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1025,7 +1025,8 @@ static long ImplHandleKey( Window* pWindow, USHORT nSVEvent, #ifdef REMOTE_APPSERVER if ( aKeyCode.IsShift() && aKeyCode.IsMod2() && (aKeyCode.GetCode() == KEY_D) ) #else - if ( aKeyCode.IsShift() && aKeyCode.IsMod1() && (aKeyCode.GetCode() == KEY_D) ) + // #105224# use Ctrl-Alt-Shift-D, Ctrl-Shift-D must be useable by app + if ( aKeyCode.IsShift() && aKeyCode.IsMod1() && aKeyCode.IsMod2() && (aKeyCode.GetCode() == KEY_D) ) #endif { DBGGUI_START(); @@ -1964,6 +1965,16 @@ static void ImplHandleSalKeyMod( Window* pWindow, SalKeyModEvent* pEvent ) nNewCode |= pWindow->mpFrameData->mnMouseCode & ~(KEY_SHIFT | KEY_MOD1 | KEY_MOD2); pWindow->mpFrameWindow->ImplCallMouseMove( nNewCode, TRUE ); } + + // #105224# send commandevent to allow special treatment of Ctrl-LeftShift/Ctrl-RightShift etc. + + // find window + Window* pChild = ImplGetKeyInputWindow( pWindow ); + if ( !pChild ) + return; + + CommandModKeyData data( pEvent->mnModKeyCode ); + ImplCallCommand( pChild, COMMAND_MODKEYCHANGE, &data ); } // ----------------------------------------------------------------------- |