#4 Context menu is shown on blank area

closed-fixed
nobody
None
5
2010-10-29
2010-10-04
Matthias Mohr
No

When I have a misspelled word at the end of a text and I click somewhere behind (or below) the text on an empty area, the context menu is shown for the last misspelled word. This seems to be a bit buggy, but maybe this is a wanted behaviour. Then this is a feature request. I would like to have a possibility to show the context menu with the spelling suggestions only when a misspelled word is under the cursor.

Discussion

  • i-net software
    i-net software
    2010-10-27

    The spell checking orientate on the text cursor. It is not possible to set the text cursor behind or below the last character.

    In the CheckListener we use:

    jTextComponent.viewToModel( Point );

    to Request the text position. Do you know an API call to detect if the Mouse is behind or below of the text?

     
  • i-net software
    i-net software
    2010-10-29

    I have check in a fix. Please test it.

     
  • i-net software
    i-net software
    2010-10-29

    • status: open --> closed-fixed