Skip to content

Commit b7b4d6e

Browse files
author
Andy Goryachev
committedJan 13, 2025
8347305: RichTextArea Follow-up
Reviewed-by: kcr
1 parent 0f6b8c5 commit b7b4d6e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎doc-files/behavior/RichTextAreaBehavior.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
|shortcut-A | |SELECT_ALL |
7575
|ctrl-BACK_SLASH |linux, win |DESELECT |
7676
|BACKSPACE | |BACKSPACE |7
77-
|ctrl-BACKSPACE |linux, win |DELETE_WORD_NEXT_START |
78-
|option-BACKSPACE |mac |DELETE_WORD_NEXT_START |7
77+
|ctrl-BACKSPACE |linux, win |DELETE_WORD_PREVIOUS |
78+
|option-BACKSPACE |mac |DELETE_WORD_PREVIOUS |7
7979
|shift-BACKSPACE | |BACKSPACE |7
8080
|shortcut-BACKSPACE |mac |DELETE_PARAGRAPH_START |7, mac only
8181
|shortcut-C | |COPY |

‎modules/jfx.incubator.richtext/src/main/java/com/sun/jfx/incubator/scene/control/richtext/Params.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -102,7 +102,7 @@ public class Params {
102102
public static final double PREF_HEIGHT = 176;
103103

104104
/** default preferred width */
105-
public static final double PREF_WIDTH = 176;
105+
public static final double PREF_WIDTH = 480;
106106

107107
/** scroll bars block increment, fraction of view width/height (between 0.0 and 1.0). */
108108
public static final double SCROLL_BARS_BLOCK_INCREMENT = 0.05;

‎modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/RichTextArea.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
* <pre>{@code
113113
* SimpleViewOnlyStyledModel m = new SimpleViewOnlyStyledModel();
114114
* // add text segment using CSS style name (requires a stylesheet)
115-
* m.addWithStyles("RichTextArea ", "HEADER");
115+
* m.addWithStyleNames("RichTextArea ", "HEADER");
116116
* // add text segment using inline styles
117117
* m.addWithInlineStyle("Demo", "-fx-font-size:200%; -fx-font-weight:bold;");
118118
* // add newline

0 commit comments

Comments
 (0)
Please sign in to comment.