void Dock::draw()
{
...
if(listFilterMode)
{
listFilter.drawlist();
listFilterMode = false;
}
else
{
list.drawList();
listFilterMode = true;
}
drawScene();
}
void Dock::keyPress(int key)
{
if(key == OF_KEY_TAB)
{
draw();
}
}