mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:42:27 +01:00
Fix leader in hint mode
This commit is contained in:
@@ -715,6 +715,18 @@ function Hints() //{{{
|
||||
default:
|
||||
if (/^\d$/.test(key))
|
||||
{
|
||||
// FIXME: Kludge.
|
||||
if (escapeNumbers)
|
||||
{
|
||||
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.selectionStart = start + 1;
|
||||
cmdline.selectionEnd = end + 1;
|
||||
return;
|
||||
}
|
||||
|
||||
prevInput = "number";
|
||||
|
||||
var oldHintNumber = hintNumber;
|
||||
|
||||
Reference in New Issue
Block a user