Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8122360

Using Tab on HTMLEditor makes cursor disappear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8
    • 7u45
    • javafx
    • Windows 8

      When using the HTMLEditor component, pressing Tab creates a tab in the text, but makes the cursor disappear. You can still keep typing at the correct position, but the cursor only reappears when you press Tab again.

      Used code to reproduce:

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.VBox;
      import javafx.scene.web.HTMLEditor;
      import javafx.stage.Stage;

      public class EditorTest extends Application {

          public static void main(String[] args) {
              launch(args);
          }
          
          public void start(Stage primaryStage) {
           VBox root = new VBox();
           HTMLEditor editor = new HTMLEditor();
          
           root.getChildren().add(editor);
           primaryStage.setScene(new Scene(root));
           primaryStage.show();
          }
      }

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: