From f362dba1d631865a6fac50da091a54236745befb Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Fri, 22 Mar 2002 12:55:39 +0000 Subject: #96985# dock/undock with key input --- vcl/source/window/dockwin.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/dockwin.cxx') 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 ); -- cgit