1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 12:02:25 +01:00

Fix completion.

This commit is contained in:
Kris Maglione
2009-04-29 20:29:14 -04:00
parent 2578a77f52
commit 324597c8a7
2 changed files with 3 additions and 3 deletions

View File

@@ -1692,14 +1692,14 @@ function Completion() //{{{
{
context.title = ["Menu Path", "Label"];
context.anchored = false;
context.keys = { text: "fullMenuPath", description: "label" };
context.keys = { text: "fullMenuPath", description: function (item) item.getAttribute("label") };
context.completions = liberator.menuItems;
},
option: function option(context, scope)
{
context.title = ["Option"];
context.keys = { text: "fullMenuPath", description: function (item) item.getAttribute("label") };
context.keys = { text: "names", description: "description" };
context.completions = options;
if (scope)
context.filters.push(function ({ item: opt }) opt.scope & scope);