mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 01:17:59 +01:00
slight hint display improvment on illegal hint number
This commit is contained in:
@@ -236,14 +236,16 @@ vimperator.Hints = function() //{{{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// no safety checks are done, be careful with this function
|
|
||||||
// TODO: make it aware of imgspans
|
// TODO: make it aware of imgspans
|
||||||
function showActiveHint(newID, oldID)
|
function showActiveHint(newID, oldID)
|
||||||
{
|
{
|
||||||
var oldElem = valid_hints[oldID - 1];
|
var oldElem = valid_hints[oldID - 1];
|
||||||
|
if (oldElem)
|
||||||
|
oldElem.style.backgroundColor = "yellow";
|
||||||
|
|
||||||
var newElem = valid_hints[newID - 1];
|
var newElem = valid_hints[newID - 1];
|
||||||
oldElem.style.backgroundColor = "yellow";
|
if (newElem)
|
||||||
newElem.style.backgroundColor = "#88FF00";
|
newElem.style.backgroundColor = "#88FF00";
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHints(win, start_idx)
|
function showHints(win, start_idx)
|
||||||
|
|||||||
Reference in New Issue
Block a user