summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-06-18 09:38:59 +0000
committerMathias Bauer <mba@openoffice.org>2001-06-18 09:38:59 +0000
commite58e60ee7a4180395e945209a840b13e64817c0b (patch)
tree14e14d8d8009b518a215579d6bbe175fc1642e63 /sfx2
parent7d25d07f198a4d29a575387e3ac6f2e4f24e2fb1 (diff)
#80059#: ESCAPE from fullscreenmode
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewsh.cxx20
1 files changed, 17 insertions, 3 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 50abe21c46ab..11139615d3a4 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewsh.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: mba $ $Date: 2001-06-11 10:11:57 $
+ * last change: $Author: mba $ $Date: 2001-06-18 10:38:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1235,7 +1235,21 @@ FASTBOOL SfxViewShell::KeyInput( const KeyEvent &rKeyEvent )
if ( bRet )
return bRet;
else
- return SFX_APP()->GetAppAccel_Impl()->Call( rKeyEvent, GetViewFrame()->GetBindings(), FALSE );
+ bRet = SFX_APP()->GetAppAccel_Impl()->Call( rKeyEvent, GetViewFrame()->GetBindings(), FALSE );
+ if ( !bRet && rKeyEvent.GetKeyCode().GetCode() == KEY_ESCAPE )
+ {
+ SfxTopViewFrame *pTop = PTR_CAST( SfxTopViewFrame, GetViewFrame()->GetTopViewFrame() );
+ if ( pTop )
+ {
+ WorkWindow* pWork = (WorkWindow*) pTop->GetTopFrame_Impl()->GetTopWindow_Impl();
+ if ( pWork && pWork->IsFullScreenMode() )
+ {
+ GetViewFrame()->GetDispatcher()->Execute( SID_WIN_FULLSCREEN, SFX_CALLMODE_SLOT );
+ }
+ }
+ }
+
+ return bRet;
}
FASTBOOL SfxViewShell::GlobalKeyInput_Impl( const KeyEvent &rKeyEvent )