]> git.lyx.org Git - features.git/commitdiff
Fix bug #12795
authorDaniel Ramoeller <d.lyx@web.de>
Mon, 12 Jun 2023 23:33:25 +0000 (19:33 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 12 Jun 2023 23:33:25 +0000 (19:33 -0400)
src/insets/InsetHyperlink.cpp

index ccd0ffa8807045232c5faf0b6b8c2a986960c0cc..a0c504cd9cb5d6ef2c9218e8b19f32c471db03f9 100644 (file)
@@ -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: