update dev300-m58
[ooovba.git] / applied_patches / 0557-vcl-permit-global-shortcuts.diff
blob70005580409a602cd65f9029038d2d71d1a2e54e
1 forward ctrl-accel keypresses to application, even when a dlg is open (e.g. useful for custom animation pane)
3 From: Thorsten Behrens <thb@openoffice.org>
6 ---
8 vcl/source/window/dlgctrl.cxx | 4 +++-
9 1 files changed, 3 insertions(+), 1 deletions(-)
12 diff --git vcl/source/window/dlgctrl.cxx vcl/source/window/dlgctrl.cxx
13 index 1e9a1e2..d03489c 100644
14 --- vcl/source/window/dlgctrl.cxx
15 +++ vcl/source/window/dlgctrl.cxx
16 @@ -790,7 +790,9 @@ BOOL Window::ImplDlgCtrl( const KeyEvent& rKEvt, BOOL bKeyInput )
17 pWindow = pWindow->GetWindow( WINDOW_NEXT );
20 - else
21 + else if ( !aKeyCode.IsMod1() ) // no ctrl pressed - those are
22 + // application-wide shortcuts
23 + // we want to let pass
25 xub_Unicode c = rKEvt.GetCharCode();
26 if ( c )