Docking Package: Fixed bug blocking key events from main window

git-svn-id: svn://ultimatepp.org/upp/trunk@2314 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
mrjt 2010-04-08 15:22:45 +00:00
parent 86eea008ef
commit 79ba675313

View file

@ -250,8 +250,9 @@ void DockCont::ChildAdded(Ctrl *child)
bool DockCont::Key(dword key, int count)
{
PostCallback(callback1(base, &DockWindow::DoHotKeys, key));
return true;
if (!IsDocked())
PostCallback(callback1(base, &DockWindow::DoHotKeys, key));
return !IsDocked();
}
// The use of Single<> here is bad form, but I am unable to declare it a