mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:07:59 +01:00
No mapping found
This commit is contained in:
@@ -208,12 +208,13 @@ function Hints() //{{{
|
|||||||
let hint = pageHints[i];
|
let hint = pageHints[i];
|
||||||
[elem, text, span, imgspan] = hint;
|
[elem, text, span, imgspan] = hint;
|
||||||
|
|
||||||
if (!validHint(text))
|
let valid = validHint(text);
|
||||||
{
|
span.style.display = (valid ? "" : "none");
|
||||||
span.style.display = "none";
|
if (imgspan)
|
||||||
if (imgspan)
|
imgspan.style.display = (valid ? "" : "none");
|
||||||
imgspan.style.display = "none";
|
|
||||||
|
|
||||||
|
if (!valid)
|
||||||
|
{
|
||||||
elem.removeAttributeNS(NS.uri, "highlight");
|
elem.removeAttributeNS(NS.uri, "highlight");
|
||||||
continue inner;
|
continue inner;
|
||||||
}
|
}
|
||||||
@@ -238,7 +239,6 @@ function Hints() //{{{
|
|||||||
setClass(imgspan, activeHint == hintnum)
|
setClass(imgspan, activeHint == hintnum)
|
||||||
}
|
}
|
||||||
|
|
||||||
span.style.display = "inline";
|
|
||||||
span.setAttribute("number", hintnum++);
|
span.setAttribute("number", hintnum++);
|
||||||
if (imgspan)
|
if (imgspan)
|
||||||
imgspan.setAttribute("number", hintnum);
|
imgspan.setAttribute("number", hintnum);
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ function Mappings() //{{{
|
|||||||
// TODO: Move this to an ItemList to show this automatically
|
// TODO: Move this to an ItemList to show this automatically
|
||||||
if (list.*.length() == list.text().length())
|
if (list.*.length() == list.text().length())
|
||||||
{
|
{
|
||||||
liberator.echo(<div highlight="Title">No mappings found</div>, commandline.FORCE_MULTILINE);
|
liberator.echo("No mapping found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
|
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ function CommandLine() //{{{
|
|||||||
if (show)
|
if (show)
|
||||||
{
|
{
|
||||||
this.itemList.reset();
|
this.itemList.reset();
|
||||||
this.select(this.RESET);
|
this.selected = null;
|
||||||
this.wildIndex = 0;
|
this.wildIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,16 +251,9 @@ function CommandLine() //{{{
|
|||||||
|
|
||||||
_reset: function _reset()
|
_reset: function _reset()
|
||||||
{
|
{
|
||||||
this.prefix = this.context.value.substring(0, this.start);
|
|
||||||
this.value = this.context.value.substring(this.start, this.caret);
|
|
||||||
this.suffix = this.context.value.substring(this.caret);
|
|
||||||
|
|
||||||
this.itemList.reset();
|
this.itemList.reset();
|
||||||
this.itemList.selectItem(this.selected);
|
this.itemList.selectItem(this.selected);
|
||||||
|
|
||||||
this.wildIndex = 0;
|
|
||||||
this.wildtypes = this.wildmode.values;
|
|
||||||
|
|
||||||
this.preview();
|
this.preview();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user