X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHyperlink.cpp;h=a0c504cd9cb5d6ef2c9218e8b19f32c471db03f9;hb=8124e6c02ea1fd6779bb6c47ffe2bca2c8bd2d97;hp=ccd0ffa8807045232c5faf0b6b8c2a986960c0cc;hpb=0c56f60535230ffd2033efff0a0bb56058845e4e;p=lyx.git diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp index ccd0ffa880..a0c504cd9c 100644 --- a/src/insets/InsetHyperlink.cpp +++ b/src/insets/InsetHyperlink.cpp @@ -17,6 +17,7 @@ #include "FuncRequest.h" #include "FuncStatus.h" #include "LaTeXFeatures.h" +#include "LyX.h" #include "output_docbook.h" #include "output_xhtml.h" #include "xml.h" @@ -91,6 +92,12 @@ docstring InsetHyperlink::screenLabel() const 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: