summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2019-03-30 02:18:51 +0100
committerDaniel Carl <danielcarl@gmx.de>2019-03-30 02:18:51 +0100
commit6b07416d773e2b48c6904c3590222e01f0a66725 (patch)
tree30e144577ae485952034efedaadd54c951a1edad /src/scripts
parentf7e54650a8ce0e624aa544c23245c963199a919a (diff)
Show uri of hinted element in statusbar.
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/hints.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripts/hints.js b/src/scripts/hints.js
index 6efee48..fab48de 100644
--- a/src/scripts/hints.js
+++ b/src/scripts/hints.js
@@ -348,7 +348,7 @@ var hints = Object.freeze((function(){
idx = 0;
}
}
- focusHint(idx);
+ return focusHint(idx);
}
function fire() {
@@ -423,8 +423,11 @@ var hints = Object.freeze((function(){
}
/* get the new active hint */
if ((activeHint = validHints[newIdx])) {
+ var e = activeHint.e;
activeHint.focus();
- mouseEvent(activeHint.e, "mouseover");
+ mouseEvent(e, "mouseover");
+
+ return "OVER:" + (e instanceof HTMLImageElement ? "I:" : "A:") + getSrc(e);
}
}