JDK-8127490 : Google Docs editing issues
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: fx2.0.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-01-11
  • Updated: 2015-06-17
  • Resolved: 2013-08-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
When editing a document in Google Docs, the enter key does not work, so you cannot generate new lines.

Also there is something strange going on with the selection range and caret selection - if you click around in the text of the document you can see the caret ends up in the middle of letters rather than between them.  The selection also appears off sometimes half a character to the left or right of where it is supposed to be.  The caret and selection issues can be seen most clearly by simultaneously opening a document for editing in both google docs and firefox.

The enter processing appears to be a WebView bug.  The selection could be a google bug, but it really looks more like a webview bug to me due to the slightly differing font processing in each browser.

Here is a link which can be used to test this out the editing, selection range and caret display  - just paste the link into a webview.

https://docs.google.com/document/d/16I-h8nzOziZSYncFVVzU_G--cHGItzg8yH6ikpCS3K8/edit?hl=en_US

To test while simultaneously editing in firefox, log into google (e.g. using a gmail account) in firefox and open the same url - any edits made will show up in the webview with the username attached, but the selection and carets will be slightly out of synch between the two browsers.

Sample test program

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class WebViewGoogleDocs extends Application {
  public static void main(String[] args) throws Exception { launch(args); }
  public void start(final Stage stage) throws Exception {
    WebView webView = new WebView(); webView.getEngine().load("https://docs.google.com/document/d/16I-h8nzOziZSYncFVVzU_G--cHGItzg8yH6ikpCS3K8/edit?hl=en_US");
    stage.setScene(new Scene(webView)); stage.show();
  }
}

Comments
Fixed with the RT-24772 changes. Checked using 8b102.
09-08-2013

The selection problems appear to be caused by RT-11239
20-01-2012

My changes for RT-18534 appear to fix the <ENTER> key processing, but not the selection problems.
18-01-2012

Vasliliy could you please check if this is covered with your keyboard fixes?
18-01-2012