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:
@@ -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
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user