mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:02:31 +02:00
Fix hints again
This commit is contained in:
1 parent
3bde15ae61
commit
8fc504ea28
1 file changed
+2
-2
+2
-2
@@ -241,7 +241,7 @@ function Hints() //{{{
|
||||
|
||||
span.setAttribute("number", hintnum++);
|
||||
if (imgspan)
|
||||
imgspan.setAttribute("number", hintnum++);
|
||||
imgspan.setAttribute("number", hintnum);
|
||||
else
|
||||
setClass(elem, activeHint == hintnum);
|
||||
validHints.push(elem);
|
||||
@@ -721,7 +721,7 @@ function Hints() //{{{
|
||||
let cmdline = document.getElementById("liberator-commandline-command");
|
||||
let start = cmdline.selectionStart;
|
||||
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.selectionEnd = end + 1;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user