Commit 92c37663 authored by mazda@chromium.org's avatar mazda@chromium.org

Open app with Alt+number even when it is not running.

BUG=129016
TEST=Manual


Review URL: https://chromiumcodereview.appspot.com/10827021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148500 0039d316-1c4b-4281-b951-d872f2087c98
parent ed7012ce
......@@ -715,7 +715,8 @@ void AcceleratorController::SwitchToWindow(int window) {
// found (which is true when indexes_left is -1) or b.) the last item was
// requested (which is true when index was passed in as a negative number).
if (found_index >= 0 && (indexes_left == -1 || window < 0) &&
items[found_index].status == ash::STATUS_RUNNING) {
(items[found_index].status == ash::STATUS_RUNNING ||
items[found_index].status == ash::STATUS_CLOSED)) {
// Then set this one as active.
Shell::GetInstance()->launcher()->ActivateLauncherItem(found_index);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment