Skip to content

use position of selection instead of context menu#2807

Merged
sunderme merged 2 commits intotexstudio-org:masterfrom
octaeder:clearPreview
Dec 29, 2022
Merged

use position of selection instead of context menu#2807
sunderme merged 2 commits intotexstudio-org:masterfrom
octaeder:clearPreview

Conversation

@octaeder
Copy link
Copy Markdown
Contributor

This adopts the behavior of starting preview via context menu when deleting the preview. Now in both cases if there is a selection then the position of the selection is used, not that of the context menu. Thus you can make a selection, preview it (even if the context menu is opened with the cursor over a begin{xyz} not contained in the selection) and then remove the preview without having to move the pointer over the selected text (or the preview image). This had already been implemented in PR #2803 which had been changed.
This finally closes #2794.

@sunderme sunderme merged commit 9daf4ae into texstudio-org:master Dec 29, 2022
@octaeder octaeder deleted the clearPreview branch December 29, 2022 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

some actions don't use position of edit contextmenu for actions

2 participants