mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:12:26 +01:00
Fix hints again
This commit is contained in:
@@ -241,7 +241,7 @@ function Hints() //{{{
|
|||||||
|
|
||||||
span.setAttribute("number", hintnum++);
|
span.setAttribute("number", hintnum++);
|
||||||
if (imgspan)
|
if (imgspan)
|
||||||
imgspan.setAttribute("number", hintnum++);
|
imgspan.setAttribute("number", hintnum);
|
||||||
else
|
else
|
||||||
setClass(elem, activeHint == hintnum);
|
setClass(elem, activeHint == hintnum);
|
||||||
validHints.push(elem);
|
validHints.push(elem);
|
||||||
@@ -721,7 +721,7 @@ function Hints() //{{{
|
|||||||
let cmdline = document.getElementById("liberator-commandline-command");
|
let cmdline = document.getElementById("liberator-commandline-command");
|
||||||
let start = cmdline.selectionStart;
|
let start = cmdline.selectionStart;
|
||||||
let end = cmdline.selectionEnd;
|
let end = cmdline.selectionEnd;
|
||||||
cmdline.value = cmdline.value.substr(0, pre) + key + cmdline.value.substr(pre);
|
cmdline.value = cmdline.value.substr(0, start) + key + cmdline.value.substr(start);
|
||||||
cmdline.selectionStart = start + 1;
|
cmdline.selectionStart = start + 1;
|
||||||
cmdline.selectionEnd = end + 1;
|
cmdline.selectionEnd = end + 1;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user