summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-12-06 11:57:57 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-12-06 11:57:57 +0000
commitdd5b97caa105f51ada6dfde9032964f8d1163204 (patch)
treedfa97f86469adf1cf4885206c3ceeae146dfd3cc
parent51d435ca61e9e24506b0e321613fe6d0f09f6e50 (diff)
#105941# allow TAB travelling in undocked toolbars
-rw-r--r--vcl/source/window/toolbox.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 9df19b19c72e..453192079c07 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: toolbox.cxx,v $
*
- * $Revision: 1.56 $
+ * $Revision: 1.57 $
*
- * last change: $Author: ssa $ $Date: 2002-12-04 17:36:56 $
+ * last change: $Author: ssa $ $Date: 2002-12-06 12:57:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4164,8 +4164,10 @@ long ToolBox::Notify( NotifyEvent& rNEvt )
{
case KEY_TAB:
{
- // TAB cycling only if parent is not a dialog
- BOOL bNoTabCycling = ( ( ImplGetParent()->GetStyle() & (WB_DIALOGCONTROL | WB_NODIALOGCONTROL) ) == WB_DIALOGCONTROL );
+ // internal TAB cycling only if parent is not a dialog or if we are the ony child
+ // otherwise the dialog control will take over
+ BOOL bNoTabCycling = ( ( ImplGetParent()->GetStyle() & (WB_DIALOGCONTROL | WB_NODIALOGCONTROL) ) == WB_DIALOGCONTROL &&
+ ImplGetParent()->GetChildCount() != 1 );
if( bNoTabCycling )
return DockingWindow::Notify( rNEvt );