Permalink
Browse files

Form/TabBar: focus the new page in ClickPage()

Fixes task manager focus problems on Altair (TRAC #1790, #1792).
  • Loading branch information...
1 parent 53ecab5 commit 1c9714804496b06b6f0619d17d9fc142d510b19e @MaxKellermann MaxKellermann committed Feb 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Form/TabBar.cpp
View
@@ -114,6 +114,11 @@ TabBarControl::ClickPage(unsigned i)
if (tab_display != NULL)
tab_display->invalidate();
+ if (!is_current)
+ /* switching to a new page by mouse click focuses the first
+ control of the page, which is important for Altair hot keys */
+ pager.SetFocus();
+
if (page_flipped_callback != NULL)
page_flipped_callback();
}

0 comments on commit 1c97148

Please sign in to comment.