g_free(value);
g_free(error);
g_free(js);
+
+ g_signal_emit_by_name(vp.gui.webview, "hovering-over-link", NULL, NULL);
}
}
return;
}
- if (!strncmp(value, "DONE:", 5)) {
+ if (!strncmp(value, "OVER:", 5)) {
+ g_signal_emit_by_name(
+ vp.gui.webview, "hovering-over-link", NULL, *(value + 5) == '\0' ? NULL : (value + 5)
+ );
+ } else if (!strncmp(value, "DONE:", 5)) {
hints_observe_input(FALSE);
vp_set_mode(VP_MODE_NORMAL, TRUE);
} else if (!strncmp(value, "INSERT:", 7)) {
if (hintCount <= 1) {
return this.fire(1);
}
- _focus(1);
+ return _focus(1);
};
/* set focus to next avaiable hint */
var index = _getHintIdByNumber(curFocusNum);
if (typeof(hints[index + 1]) !== "undefined") {
- _focus(hints[index + 1].number);
+ return _focus(hints[index + 1].number);
} else {
- _focus(hints[0].number);
+ return _focus(hints[0].number);
}
};
{
var index = _getHintIdByNumber(curFocusNum);
if (index !== 0 && typeof(hints[index - 1].number) !== "undefined") {
- _focus(hints[index - 1].number);
+ return _focus(hints[index - 1].number);
} else {
- _focus(hints[hints.length - 1].number);
+ return _focus(hints[hints.length - 1].number);
}
};
hint.elem.className = hint.elem.className.replace(config.hintClass, config.hintClassFocus);
hint.elem.style.background = config.eBgf;
_mouseEvent(hint.elem, "mouseover");
+ var source = _getElemtSource(hint.elem);
+ return "OVER:" + (source ? source : "");
}
}