Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Monaco Editor Mouse Events #43

Open
hawkerm opened this issue Mar 29, 2020 · 2 comments
Open

Add Monaco Editor Mouse Events #43

hawkerm opened this issue Mar 29, 2020 · 2 comments

Comments

@hawkerm
Copy link
Owner

hawkerm commented Mar 29, 2020

In the XmlSyntaxVisualizerUWP example we couldn't detect the cursor moving from a mouse click:

Cursor position doesn't update on click, only on keyboard caret move/edit.

If we can expose knowing when the user clicks in the editor, then we can just call get caret position method or something. Need to investigate this scenario more.

@hawkerm hawkerm added this to the v0.9-beta milestone Mar 29, 2020
@hawkerm hawkerm added the bug label Mar 29, 2020
@hawkerm
Copy link
Owner Author

hawkerm commented Mar 30, 2020

Hmm, the scenario for the visualizer may work through the SelectedRange property like we do in the sample here, even if we don't expose the click event itself...

The Editor's GotFocus and LostFocus events also work.

@hawkerm
Copy link
Owner Author

hawkerm commented Mar 30, 2020

Think for the original scenario for the XmlSyntaxVisualizer, we're sufficient for now, so going to move this out of v0.9-beta.

However, going to leave this here, as we probably want to implement the actual Monaco onMouseDown event as it contains a lot of context about where in the editor the user clicked.

@hawkerm hawkerm removed this from the v0.9-beta milestone Mar 30, 2020
@hawkerm hawkerm added feature 📓 and removed bug labels Mar 30, 2020
@hawkerm hawkerm changed the title Mouse Events? Add Monaco Editor Mouse Events Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant