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

Select Word using double click do not work second time if mouse is not moved #520

Open
ovna01 opened this issue Aug 24, 2023 · 0 comments
Open
Labels

Comments

@ovna01
Copy link

ovna01 commented Aug 24, 2023

Description
Select Word using double click do not work second time if mouse is not moved.

Steps to Reproduce
Open RSyntaxTextAreaDemoApp

  1. Enter a word e.g. "help"
  2. Double click on the word to select it
  3. Single click to remove selection without moving the mouse
  4. Double click on the word again without moving the mouse to select it -> now the word is not selected

Expected behavior
The second double click should select the word again

Actual behavior
The second double click does not select the word again

Java version
Java 17.0.4.1 Eclipse Adoptium

Additional context
The problem is probably due to that the class ConfigurableCaret overrides the method mouseClicked(MouseEvent e) and do not set the selectedWordEvent=null as in the overridden method in DefaultCaret.
The selectedWordEvent is used in the DefaultCaret method selectWord(MouseEvent e) to check if the mouse position has changed.

@ovna01 ovna01 added the bug label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant