commit 8124e6c02ea1fd6779bb6c47ffe2bca2c8bd2d97
Author: Daniel Ramoeller <d....@web.de>
Date:   Mon Jun 12 19:33:25 2023 -0400

    Fix bug #12795
---
 src/insets/InsetHyperlink.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp
index ccd0ffa..a0c504c 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:
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to