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

Double clicking on a word selects 2 words #50

Open
j-lnaddef opened this issue Jun 5, 2018 · 5 comments
Open

Double clicking on a word selects 2 words #50

j-lnaddef opened this issue Jun 5, 2018 · 5 comments

Comments

@j-lnaddef
Copy link

The documentation states :
When you double-click on a word, most browsers will expand the selection to include the entire word.

This works on Edge, but on Firefox or Chrome double-clicking on a word selects that word plus the following word, which is not very ergonomic. It would be nice to have a fix on that.

@weitechen
Copy link
Owner

Which OS are you using now? I'm using Mac + Chrome / Firefox, and the double-click on a word always select the word itself. I'm not quite sure how it works on Windows + Chrome / Firefox

@weitechen
Copy link
Owner

The behavior of double-clicking on a word is OS by OS. Here are some discussions about how to select one word without the trailing space on Windows platform:

https://superuser.com/questions/282568/is-there-a-way-to-not-select-whitespace-after-a-word-when-double-clicking

@j-lnaddef
Copy link
Author

I am using Windows 10 indeed, but this is the only editor doing this. On any other editor/website/app, double clicking selects only 1 word without the trailing spaces, that is why I assume there is something weird about anafora's behavior. I checked with other computers (still on Windows) and I get the same.

@weitechen
Copy link
Owner

Got you. One of our annotator reports the same issues. I'm thinking that this issue may be due to
the JQuery plug-in. I'll check it recently

@LennartPiro
Copy link

The trailing space is the problem here. Double click selects the word plus space, then the function snapSelectionToWord() extends this to include the following word as well.

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

3 participants