From ad230e9660112c6793baaf12aef9a6270c620096 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Thu, 22 Nov 2007 01:22:25 -0800 Subject: [PATCH] Bug 404647 - "CTRL+F shortcut should focus the search box in the download manager" [p=cdolivei.bugzilla@gmail.com (cesar) r=sdwilsh a1.9=schrep] --- toolkit/locales/en-US/chrome/mozapps/downloads/downloads.dtd | 1 + toolkit/mozapps/downloads/content/downloads.js | 5 +++++ toolkit/mozapps/downloads/content/downloads.xul | 3 +++ 3 files changed, 9 insertions(+) diff --git a/toolkit/locales/en-US/chrome/mozapps/downloads/downloads.dtd b/toolkit/locales/en-US/chrome/mozapps/downloads/downloads.dtd index 63c7ce36eeb0..940e2252970f 100644 --- a/toolkit/locales/en-US/chrome/mozapps/downloads/downloads.dtd +++ b/toolkit/locales/en-US/chrome/mozapps/downloads/downloads.dtd @@ -36,6 +36,7 @@ + diff --git a/toolkit/mozapps/downloads/content/downloads.js b/toolkit/mozapps/downloads/content/downloads.js index ac915e8f8300..c569226db7f1 100644 --- a/toolkit/mozapps/downloads/content/downloads.js +++ b/toolkit/mozapps/downloads/content/downloads.js @@ -708,6 +708,11 @@ var gDownloadViewController = { } }; +function setSearchboxFocus() +{ + document.getElementById("searchbox").focus(); +} + function onDownloadShowInfo() { if (gDownloadsView.selectedItem) diff --git a/toolkit/mozapps/downloads/content/downloads.xul b/toolkit/mozapps/downloads/content/downloads.xul index 6bab06369e32..71561e863ff8 100644 --- a/toolkit/mozapps/downloads/content/downloads.xul +++ b/toolkit/mozapps/downloads/content/downloads.xul @@ -117,6 +117,9 @@ #endif +