diff options
author | Philipp Lohmann <pl@openoffice.org> | 2002-03-22 12:55:39 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2002-03-22 12:55:39 +0000 |
commit | f362dba1d631865a6fac50da091a54236745befb (patch) | |
tree | 0ff50257958f0bb5c53b42ddc8bd8f61e6eabaed /vcl/source/window/dockwin.cxx | |
parent | 59744c264604e11e6ac6135f159d109d6b3564ba (diff) |
#96985# dock/undock with key input
Diffstat (limited to 'vcl/source/window/dockwin.cxx')
-rw-r--r-- | vcl/source/window/dockwin.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index 3042aebbfbda..ab1c768bf494 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dockwin.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: pl $ $Date: 2002-03-19 17:09:34 $ + * last change: $Author: pl $ $Date: 2002-03-22 13:55:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -645,6 +645,15 @@ long DockingWindow::Notify( NotifyEvent& rNEvt ) } } } + else if( rNEvt.GetType() == EVENT_KEYINPUT ) + { + const KeyCode& rKey = rNEvt.GetKeyEvent()->GetKeyCode(); + if( rKey.GetCode() == KEY_F4 && ! rKey.GetModifier() ) + { + SetFloatingMode( !IsFloatingMode() ); + return TRUE; + } + } } return Window::Notify( rNEvt ); |