improve help implementation

This commit is contained in:
Geoffray Levasseur committed 2026-11-07 13:25:21 +01:00
1 parent 2dcc63875d
commit 9ef24e3a9e
10 files changed
+52 -26

No files matched your search

+2 -1
View File
@@ -474,7 +474,8 @@ void DraftDlg::mousePressEvent(QMouseEvent *event)
const int i = (y - yFeature) / LinePitch;
const int c = code[static_cast<std::size_t>(i)];
if (x >= xFeature - 21 && x < width() && (event->modifiers() & Qt::ShiftModifier)) {
Help::showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Feature, c);
if (auto *dlg = Term::mainScreenHelpDlg())
dlg->showNewContent(windowModeMakePersistent(windowMode()), Help::LinkCategory::Feature, c);
} else if (!isFeatureAuto(c)) {
if (c < mcFirstNonCap && x >= xFeature - 21 && x < xFeature - 21 + 12) {
incCap = c;