Skip to content

Commit

Permalink
8347305: RichTextArea Follow-up
Browse files Browse the repository at this point in the history
Reviewed-by: kcr
  • Loading branch information
Andy Goryachev committed Jan 13, 2025
1 parent 0f6b8c5 commit b7b4d6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc-files/behavior/RichTextAreaBehavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
|shortcut-A | |SELECT_ALL |
|ctrl-BACK_SLASH |linux, win |DESELECT |
|BACKSPACE | |BACKSPACE |7
|ctrl-BACKSPACE |linux, win |DELETE_WORD_NEXT_START |
|option-BACKSPACE |mac |DELETE_WORD_NEXT_START |7
|ctrl-BACKSPACE |linux, win |DELETE_WORD_PREVIOUS |
|option-BACKSPACE |mac |DELETE_WORD_PREVIOUS |7
|shift-BACKSPACE | |BACKSPACE |7
|shortcut-BACKSPACE |mac |DELETE_PARAGRAPH_START |7, mac only
|shortcut-C | |COPY |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -102,7 +102,7 @@ public class Params {
public static final double PREF_HEIGHT = 176;

/** default preferred width */
public static final double PREF_WIDTH = 176;
public static final double PREF_WIDTH = 480;

/** scroll bars block increment, fraction of view width/height (between 0.0 and 1.0). */
public static final double SCROLL_BARS_BLOCK_INCREMENT = 0.05;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
* <pre>{@code
* SimpleViewOnlyStyledModel m = new SimpleViewOnlyStyledModel();
* // add text segment using CSS style name (requires a stylesheet)
* m.addWithStyles("RichTextArea ", "HEADER");
* m.addWithStyleNames("RichTextArea ", "HEADER");
* // add text segment using inline styles
* m.addWithInlineStyle("Demo", "-fx-font-size:200%; -fx-font-weight:bold;");
* // add newline
Expand Down

1 comment on commit b7b4d6e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.