#include "FuncRequest.h"
#include "FuncStatus.h"
#include "LaTeXFeatures.h"
+#include "LyX.h"
#include "output_docbook.h"
#include "output_xhtml.h"
#include "xml.h"
void InsetHyperlink::doDispatch(Cursor & cur, FuncRequest & cmd)
{
+ // Ctrl + click: open hyperlink
+ if (cmd.action() == LFUN_MOUSE_RELEASE && cmd.modifier() == ControlModifier) {
+ lyx::dispatch(FuncRequest(LFUN_INSET_EDIT));
+ return;
+ }
+
switch (cmd.action()) {
case LFUN_INSET_EDIT:
url.replace(pos, 1, from_ascii("\\") + chars_url[k]);
// add "http://" when the type is web (type = empty)
- // and no "://" or "run:" is given
+ // and no "://" is given
if (url.find(from_ascii("://")) == string::npos
- && url.find(from_ascii("run:")) == string::npos
&& utype.empty())
url = from_ascii("http://") + url;
else if (type == "file:")
guitype = _("file");
else if (type == "other")
- guitype = _("other");
+ guitype = _("other[[Hyperlink Type]]");
return bformat(_("Hyperlink (%1$s) to %2$s"), guitype, url);
}