title: Webview with contenteditable cannot be focused programmatically
body: <p>Trying to do a requestFocus() on the WebView does not work until the user has first clicked on the control.</p>
  
  <p>I know this must be possible as htmlEditor can be focused this way (and I suspect it is based on a contenteditable WebView).</p>
  
  <p>I am coding my own specialized htmlEditor using a webview with "contenteditable" and I would really like to be able to focus it like I can do with the standard htmlEditor.</p>
  
  <p>I believe this must be an issue with Javafx and I have already submitted it to Jira, but I wonder if anyone can think of a work-around for this.</p>
  
  <p><strong>UPDATE</strong>:  Issue number in jira: RT-21695</p>
  
  <p>Short demostration code:</p>
  
  <pre><code>/* Demo webview */
  
  public class WebViewConteneditableDemo extends Application {
  
  
  String initialEditview = "&lt;html&gt;&lt;head&gt;"
          + "&lt;/head&gt;&lt;body contenteditable='true'&gt;"
          +"&lt;/body&gt;&lt;/html&gt;";
  
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
      launch(args);
  }
  
  @Override
  public void start(Stage primaryStage) {
      primaryStage.setTitle("Webview focus demo");
  
  
      final WebView editor = new WebView();
  
      Button btn = new Button();
      btn.setText("Test Webview focus");
      btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
  
          @Override
          public void handle(ActionEvent event) {
             editor.requestFocus();
          }
      });
  
      BorderPane root = new BorderPane();
      root.setTop(btn);
  
      root.setCenter(editor);
      editor.getEngine().loadContent(initialEditview);
  
      primaryStage.setScene(new Scene(root, 500, 450));
      primaryStage.show();
  }
  </code></pre>
  
  <p>}</p>