mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 15:05:46 +01:00
Refactor finder.openPrompt.
This commit is contained in:
@@ -356,17 +356,8 @@ function Finder() //{{{
|
|||||||
*/
|
*/
|
||||||
openPrompt: function (mode)
|
openPrompt: function (mode)
|
||||||
{
|
{
|
||||||
if (mode == modes.SEARCH_BACKWARD)
|
backwards = mode == modes.SEARCH_BACKWARD;
|
||||||
{
|
commandline.open(backwards ? "?" : "/", mode);
|
||||||
commandline.open("?", "", modes.SEARCH_BACKWARD);
|
|
||||||
backwards = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
commandline.open("/", "", modes.SEARCH_FORWARD);
|
|
||||||
backwards = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: focus the top of the currently visible screen
|
// TODO: focus the top of the currently visible screen
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user