FULL PRODUCT VERSION :
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.192]
A DESCRIPTION OF THE PROBLEM :
TextField caret moves to left when DEL key is pressed
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. run the code provided
2. move the mouse over the TextField and click to place the caret between any two characters in the TextField
3. press the DEL key on the keyboard
4. observe how he caret visually moves one position to the left
repeat 20 times, restarting the application each time.
The bug may or may not appear.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
caret should stay at its position
ACTUAL -
caret moves left unexpectedly
REPRODUCIBILITY :
This bug can be reproduced often.
---------- BEGIN SOURCE ----------
public class TextFieldBug extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setScene(new Scene(new TextField("some text another string")));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
press left or right arrow key to 'realign' the caret after the bug appeared
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.192]
A DESCRIPTION OF THE PROBLEM :
TextField caret moves to left when DEL key is pressed
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. run the code provided
2. move the mouse over the TextField and click to place the caret between any two characters in the TextField
3. press the DEL key on the keyboard
4. observe how he caret visually moves one position to the left
repeat 20 times, restarting the application each time.
The bug may or may not appear.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
caret should stay at its position
ACTUAL -
caret moves left unexpectedly
REPRODUCIBILITY :
This bug can be reproduced often.
---------- BEGIN SOURCE ----------
public class TextFieldBug extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setScene(new Scene(new TextField("some text another string")));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
press left or right arrow key to 'realign' the caret after the bug appeared