// Directory chooser itself
directoryChooserPanel = new WebDirectoryChooserPanel ();
getContentPane ().add ( directoryChooserPanel, BorderLayout.CENTER );
// Hotkeys condition
HotkeyManager.addContainerHotkeyCondition ( this, new HotkeyCondition ()
{
@Override
public boolean checkCondition ( final Component component )
{
return directoryChooserPanel.allowHotkeys ();