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

Text selection is broken. #13

Open
GirlBossRush opened this issue Jan 2, 2015 · 3 comments
Open

Text selection is broken. #13

GirlBossRush opened this issue Jan 2, 2015 · 3 comments
Assignees

Comments

@GirlBossRush
Copy link
Member

Double clicking or selecting text immediately removes the selection.

@Jonahss
Copy link
Collaborator

Jonahss commented Jan 3, 2015

YEah, that's cus as soon as you click on a message, focus gets transferred to the input box.
feature?
Is there a way to detect highlighting text vs just clicking?

@Jonahss
Copy link
Collaborator

Jonahss commented Jan 5, 2015

@TeffenEllis ^^

@GirlBossRush
Copy link
Member Author

window.getSelection
https://developer.mozilla.org/en-US/docs/Web/API/Window.getSelection
I've played with a bit and it's a little temperamental. The method always returns a function with a type property indicating if a range has been created.

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

2 participants