OSX: Entering curly braces and brackets is broken in 0.10.5 while 0.10.4 works (javafx14)
See original GitHub issueExpected Behavior
On a Macbook with Mac OSX 10.15 I am able to enter curly braces and brackets. []{}
. using the Option (or Alt) ⌥
key
Actual Behavior
With version 0.10.5 I am unable to enter curly braces and brackets , when I downgrade to 0.10.4 it works.
Reproducible Demo
public class Bug extends Application {
public void start(Stage primaryStage) {
StackPane root = new StackPane();
Scene scene = new Scene(root,400,400);
CodeArea codeArea = new CodeArea();
codeArea.setWrapText(true);
codeArea.setInputMethodRequests(new InputMethodRequestsObject());
codeArea.setOnInputMethodTextChanged(event -> {
String committed = event.getCommitted();
if (!committed.isEmpty()) {
codeArea.insertText(codeArea.getCaretPosition(), committed);
}
});
codeArea.setId("bibtexSourceCodeArea");
root.getChildren().add(codeArea);
primaryStage.setScene(scene);
primaryStage.show();
}
/* Work around for different input methods.
* https://github.com/FXMisc/RichTextFX/issues/146
*/
private static class InputMethodRequestsObject implements InputMethodRequests {
@Override
public String getSelectedText() {
return "";
}
@Override
public int getLocationOffset(int x, int y) {
return 0;
}
@Override
public void cancelLatestCommittedText() {
return;
}
@Override
public Point2D getTextLocation(int offset) {
return new Point2D(0, 0);
}
}
}
Environment info:
- RichTextFX Version: 0.10.5
- Operating System: OSX 10.15.7
- Java version: 14 + openjfx14
Current Workarounds
Downgrade to 0.10.4
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
I don't know why my program is giving me curly brace errors ...
But it is giving me error at last two curly braces at the lastline of the program(SAYING WHILE LOOP EXPECTED/REACHED END OF FILE...
Read more >NegativeArraySizeException on saving · Issue #8265 · JabRef ...
When I open the program on my computer and with the backup from a ... curly brace "}" is missing and so JabRef...
Read more >Java Common Errors with Explanations - Mimir HQ Help Center
This typically means that the placement of your parentheses and curly brackets is incorrect. Make sure you're using the correct syntax, that your...
Read more >Check for Balanced Brackets in an expression (well ...
Given an expression string, write a program to examine whether the pairs and the orders of parentheses are balanced in expression or not....
Read more >JavaFX Slider Control not working on Mac OS 10.9.1
I am updating slider value using javafx mediaplayer.currentTime().addListener() method by adding Change/Invalidate listener. While playing MP4 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, will release new version probably later this week or the next.
@Jugen Confirmed, works now again! Would be nice if you could release a new version with that fix.