Skip to content

Double clicking on a word selects 2 words #50

Description

@j-lnaddef

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.

Activity

  1. weitechen commented on Jun 11, 2018

    @weitechen
    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

  2. weitechen commented on Jun 11, 2018

    @weitechen
    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

  3. j-lnaddef commented on Jun 11, 2018

    @j-lnaddef
    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.

  4. weitechen commented on Jun 13, 2018

    @weitechen
    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

  5. LennartPiro commented on Aug 8, 2018

    @LennartPiro

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions