(original) (raw)
Hi all,
� ��The case is about how to handle system selection when DefaultCaret.moveDot is invoked.�
In current implementation, the text component (like JTextField) related to the DefaultCaret�
instance will change the system selection because caret moves (as perform a "select"�
operation). However, there is an action in DnD that only the view needs to be restored in a�
selected status while the system selection should not be restored because it is not a�
"select" operation.�
� � The fix checks if the component related to the DefaultCaret instance owns the focus,
if it does, the action is treated as user selection and update "system selection"; else, the
action is thought to restore the visual status of the component only and does not update
"system selection".�
� � And, there is a regression testcase in the patch as well. The testcase is put in directory
JTextArea because the bug is reported to it.
� � Webrev is here :�http://cr.openjdk.java.net/\~ngmr/7049024/webrev.02/
� � I have tested it on linux. �
� � Windows is not affected by this bug and the regression test�case does not affect it as well.
Best Regards,
Sean Chou