fixed getCurrentTreeWindow
added keyboard shortcut for search