Le 21/06/2022 à 22:40, Jean-Marc Lasgouttes a écrit :
Here is another possibility. It makes sense, but this is beginning to be too complicated for 2.4.0 IMO. It does not work yet for some very fundamental reasons.

When the solution to a problem is too difficult to obtain, the best is to change a bit the problem.

What about the following trivial patch? The difference it that this moves the focus to the document work area, but I think it is actually a feature.

JMarc
From 4ee636e6295d8ec5971fe2d613a759594c58f3bd Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Sat, 25 Jun 2022 20:49:00 +0200
Subject: [PATCH] Fix ToC action when cursor is in adv. F&R pane

---
 src/frontends/qt/TocWidget.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/frontends/qt/TocWidget.cpp b/src/frontends/qt/TocWidget.cpp
index 483f008426..734b925047 100644
--- a/src/frontends/qt/TocWidget.cpp
+++ b/src/frontends/qt/TocWidget.cpp
@@ -380,6 +380,8 @@ void TocWidget::sendDispatch(FuncRequest fr)
 {
 
 	fr.setViewOrigin(&gui_view_);
+	if (gui_view_.currentMainWorkArea() != nullptr)
+		gui_view_.setCurrentWorkArea(gui_view_.currentMainWorkArea());
 	DispatchResult const & dr = dispatch(fr);
 	if (dr.error())
 		gui_view_.message(dr.message());
-- 
2.34.1

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to