mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 18:15:46 +01:00
Merge.
This commit is contained in:
@@ -117,7 +117,7 @@ const config = { //{{{
|
||||
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",
|
||||
"marks.html", "repeat.html", "autocommands.html", "print.html",
|
||||
"gui.html", "styling.html", "message.html", "developer.html",
|
||||
"various.html", "index.html"
|
||||
"various.html", "index.html", "version.html"
|
||||
],
|
||||
|
||||
scripts: [
|
||||
@@ -372,9 +372,10 @@ const config = { //{{{
|
||||
function (args)
|
||||
{
|
||||
let arg = args.literalArg;
|
||||
function compare(a, b) util.compareIgnoreCase(a, b) == 0
|
||||
|
||||
// focus if the requested sidebar is already open
|
||||
if (document.getElementById("sidebar-title").value == arg)
|
||||
if (compare(document.getElementById("sidebar-title").value, arg))
|
||||
{
|
||||
document.getElementById("sidebar-box").focus();
|
||||
return;
|
||||
@@ -384,7 +385,7 @@ const config = { //{{{
|
||||
|
||||
for (let [,panel] in Iterator(menu.childNodes))
|
||||
{
|
||||
if (panel.label == arg)
|
||||
if (compare(panel.label, arg))
|
||||
{
|
||||
panel.doCommand();
|
||||
return;
|
||||
@@ -395,7 +396,11 @@ const config = { //{{{
|
||||
},
|
||||
{
|
||||
argCount: "1",
|
||||
completer: function (context) completion.sidebar(context),
|
||||
completer: function (context)
|
||||
{
|
||||
context.ignoreCase = true;
|
||||
return completion.sidebar(context);
|
||||
},
|
||||
literal: 0
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user