summaryrefslogtreecommitdiff
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2011-12-05 19:21:09 -0500
committerTarmac <>2011-12-05 19:21:09 -0500
commit3d8f2aa75b42b2e80b2a1a31cab63fa6c40b533e (patch)
tree980314e484e76c4f9f7981779644a9da991f16ec
parentb4dcb4efcc31a5a12d2947762ff216676b5feb2a (diff)
parenta1ec9f6a86a2cfafead1214c0f361adcb2949ae8 (diff)
Fix the dash so it gets keyboard focus the first time.. Fixes: https://bugs.launchpad.net/bugs/860805. Reviewed by Tim Penhey.
(bzr r1759)
-rw-r--r--manual-tests/launcher.txt11
-rw-r--r--plugins/unityshell/src/DashView.cpp1
2 files changed, 11 insertions, 1 deletions
diff --git a/manual-tests/launcher.txt b/manual-tests/launcher.txt
new file mode 100644
index 000000000..b6746e3ac
--- /dev/null
+++ b/manual-tests/launcher.txt
@@ -0,0 +1,11 @@
+Test Dash Key Focus
+-------------------
+This test shows that the search bar in the dash gets key focus when using the super key to start the dash on start up.
+
+#. Start on a fresh login
+#. Press the <super> key
+#. Wait for dash to appear
+#. Type "hello"
+
+Outcome
+ The dash will appear, and "hello" will be in the search box.
diff --git a/plugins/unityshell/src/DashView.cpp b/plugins/unityshell/src/DashView.cpp
index e62aad4a5..445a13849 100644
--- a/plugins/unityshell/src/DashView.cpp
+++ b/plugins/unityshell/src/DashView.cpp
@@ -693,7 +693,6 @@ void DashView::OnLensBarActivated(std::string const& id)
search_bar_->showing_filters = expanded;
search_bar_->text_entry()->SelectAll();
- nux::GetWindowCompositor().SetKeyFocusArea(search_bar_->text_entry());
search_bar_->can_refine_search = view->can_refine_search();