mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix inset context menu offset with keyboard (#12811)
This commit is contained in:
parent
94dd5ed6eb
commit
d5a9699794
@ -652,6 +652,10 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
|
|||||||
++pos.rx();
|
++pos.rx();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (e->reason() == QContextMenuEvent::Keyboard)
|
||||||
|
// Subtract the top margin
|
||||||
|
pos.setY(pos.y() - d->buffer_view_->topMargin());
|
||||||
|
|
||||||
name = d->buffer_view_->contextMenu(pos.x(), pos.y());
|
name = d->buffer_view_->contextMenu(pos.x(), pos.y());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user