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

Overriding Drag Events #223

Closed
JordanMartinez opened this issue Dec 9, 2015 · 2 comments
Closed

Overriding Drag Events #223

JordanMartinez opened this issue Dec 9, 2015 · 2 comments

Comments

@JordanMartinez
Copy link
Contributor

I want to be override StyledTextAreaBehavrior#mouseReleased's dragSelection handling. Instead of moving the selected text to where the user releases the mouse, I want to copy that text there and style it underneath a different style.

Right now, my two options are:

  • rewrite all of the functionality of this code (enum and overriding default event handling) just to fix this one instance
  • inline dragSelection into StyledTextArea itself and override only the MouseReleased event handling.
@JordanMartinez
Copy link
Contributor Author

On second thought, it'd be simpler to have a reference to StyledTextAreaBehavior within StyledTextArea so that the area itself can return the drag state.

@JordanMartinez
Copy link
Contributor Author

Resolved via 87d564b

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

No branches or pull requests

1 participant