~brandontschaefer/unity/lp.1099815-fix

« back to all changes in this revision

Viewing changes to shutdown/SessionController.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-03-19 22:32:11 UTC
  • mfrom: (3227.1.12 shutdown-fixes)
  • Revision ID: tarmac-20130319223211-msjn1dme4rse2nr9
SessionController: set the view's default action button as key-focus area on init. Fixes: https://bugs.launchpad.net/bugs/1155562.

Approved by PS Jenkins bot, Andrea Azzarone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
  view_window_->ShowWindow(true);
108
108
  view_window_->PushToFront();
109
109
  view_window_->SetInputFocus();
110
 
  nux::GetWindowCompositor().SetKeyFocusArea(view_.GetPointer());
 
110
  nux::GetWindowCompositor().SetKeyFocusArea(view_->key_focus_area());
111
111
 
112
112
  if (fade_animator_.CurrentState() == na::Animation::State::Running)
113
113
  {