1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 10:04:13 +01:00

Refactor finder.openPrompt.

This commit is contained in:
Doug Kearns
2009-06-27 22:28:25 +10:00
parent 776f9bb425
commit f3fd72b776

View File

@@ -356,17 +356,8 @@ function Finder() //{{{
*/
openPrompt: function (mode)
{
if (mode == modes.SEARCH_BACKWARD)
{
commandline.open("?", "", modes.SEARCH_BACKWARD);
backwards = true;
}
else
{
commandline.open("/", "", modes.SEARCH_FORWARD);
backwards = false;
}
backwards = mode == modes.SEARCH_BACKWARD;
commandline.open(backwards ? "?" : "/", mode);
// TODO: focus the top of the currently visible screen
},