Re: WebView: in jfx9 the ENTER key from keyboard does not add new lines on textareas (but works correctly on jfx8)

2018-04-15 Thread Mirco
Just as additional information, I noticed that  currently in jfx10 the
problem is still present.

Regards,

Mirco

On Sun, Apr 15, 2018 at 4:58 PM, Mirco <mirch...@gmail.com> wrote:

> Hi Murali,
> thank you for the quick answer.
> Glad to hear the problem does not show up anymore with the latest build.
> I will check out again when in the future the official openjfx 11 binaries
> will be released.
>
> Thanks,
> Mirco
>
> On Sat, Apr 14, 2018 at 7:22 PM, Murali Billa <murali.bi...@oracle.com>
> wrote:
>
>> Hi Mirco,
>>
>> I tried the below sample code with JDK9+180 in Ubuntu and able to
>> reproduce this issue.
>>
>> I tried with latest JDK build in Ubuntu (and in windows too) and not able
>> to reproduce this issue (i can see new lines are being added upon entering
>> ENTER key)
>>
>> I suggest you can verify  with latest JDK build.
>>
>> Thanks,
>> Murali
>>
>> -Original Message-
>> From: Mirco <mirch...@gmail.com>
>> Sent: Saturday, April 14, 2018 10:16 PM
>> To: openjfx-dev@openjdk.java.net
>> Subject: WebView: in jfx9 the ENTER key from keyboard does not add new
>> lines on textareas (but works correctly on jfx8)
>>
>> Hi,
>> please forgive me if this is not the appropriate place for such kind of
>> reports.
>> I've encountered what seems a regression from jfx8, at least on "Ubuntu
>> 16.04".
>> As stated in the mail object the ENTER key produces no effects inside any
>> editable components of a webpage.
>> Note: the CTRL-M works instead.
>>
>> What follows is a very simple example to illustrate the issue:
>>
>> import javafx.application.Application;
>> import javafx.scene.Node;
>> import javafx.scene.Scene;
>> import javafx.scene.web.WebEngine;
>> import javafx.scene.web.WebView;
>> import javafx.stage.Stage;
>> import javafx.scene.layout.VBox;
>> import javafx.scene.input.KeyEvent;
>>
>> public class WebViewSample extends Application {
>> private Scene scene;
>>
>> @Override public void start(Stage stage) {
>> stage.setTitle("Web View");
>> WebView editor = new WebView();
>> WebEngine engine = editor.getEngine();
>> engine.setJavaScriptEnabled(true);
>> engine.loadContent("Type content
>> here..."); editor.setContextMenuEnabled(false);
>> editor.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {
>> System.out.println(evt.getCode()); });
>> VBox root = new VBox();
>> root.getChildren().add(editor);
>> scene = new Scene(root,750,500);
>> stage.setScene(scene);
>> stage.show();
>> }
>>
>> public static void main(String[] args){
>> launch(WebViewSample.class, args);
>> }
>> }
>>
>> As you can see the ENTER event is intercepted and printed out by the
>> filter but no newline is added.
>> This problem should not be confused with an old bug related to the
>> JFXPanel (here no swing is involved).
>> I have not tried with the latest builds of openjfx so just in case you
>> are aware of that and/or the problem is already resolved please ignore this
>> email.
>>
>> Kind regards,
>>
>> Mirco
>>
>
>


Re: WebView: in jfx9 the ENTER key from keyboard does not add new lines on textareas (but works correctly on jfx8)

2018-04-15 Thread Mirco
Hi Murali,
thank you for the quick answer.
Glad to hear the problem does not show up anymore with the latest build.
I will check out again when in the future the official openjfx 11 binaries
will be released.

Thanks,
Mirco

On Sat, Apr 14, 2018 at 7:22 PM, Murali Billa <murali.bi...@oracle.com>
wrote:

> Hi Mirco,
>
> I tried the below sample code with JDK9+180 in Ubuntu and able to
> reproduce this issue.
>
> I tried with latest JDK build in Ubuntu (and in windows too) and not able
> to reproduce this issue (i can see new lines are being added upon entering
> ENTER key)
>
> I suggest you can verify  with latest JDK build.
>
> Thanks,
> Murali
>
> -Original Message-
> From: Mirco <mirch...@gmail.com>
> Sent: Saturday, April 14, 2018 10:16 PM
> To: openjfx-dev@openjdk.java.net
> Subject: WebView: in jfx9 the ENTER key from keyboard does not add new
> lines on textareas (but works correctly on jfx8)
>
> Hi,
> please forgive me if this is not the appropriate place for such kind of
> reports.
> I've encountered what seems a regression from jfx8, at least on "Ubuntu
> 16.04".
> As stated in the mail object the ENTER key produces no effects inside any
> editable components of a webpage.
> Note: the CTRL-M works instead.
>
> What follows is a very simple example to illustrate the issue:
>
> import javafx.application.Application;
> import javafx.scene.Node;
> import javafx.scene.Scene;
> import javafx.scene.web.WebEngine;
> import javafx.scene.web.WebView;
> import javafx.stage.Stage;
> import javafx.scene.layout.VBox;
> import javafx.scene.input.KeyEvent;
>
> public class WebViewSample extends Application {
> private Scene scene;
>
> @Override public void start(Stage stage) {
> stage.setTitle("Web View");
> WebView editor = new WebView();
> WebEngine engine = editor.getEngine();
> engine.setJavaScriptEnabled(true);
> engine.loadContent("Type content
> here..."); editor.setContextMenuEnabled(false);
> editor.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {
> System.out.println(evt.getCode()); });
> VBox root = new VBox();
> root.getChildren().add(editor);
> scene = new Scene(root,750,500);
> stage.setScene(scene);
> stage.show();
> }
>
> public static void main(String[] args){
> launch(WebViewSample.class, args);
> }
> }
>
> As you can see the ENTER event is intercepted and printed out by the
> filter but no newline is added.
> This problem should not be confused with an old bug related to the
> JFXPanel (here no swing is involved).
> I have not tried with the latest builds of openjfx so just in case you are
> aware of that and/or the problem is already resolved please ignore this
> email.
>
> Kind regards,
>
> Mirco
>


WebView: in jfx9 the ENTER key from keyboard does not add new lines on textareas (but works correctly on jfx8)

2018-04-14 Thread Mirco
Hi,
please forgive me if this is not the appropriate place for such kind of
reports.
I've encountered what seems a regression from jfx8, at least on "Ubuntu
16.04".
As stated in the mail object the ENTER key produces no effects inside any
editable components of a webpage.
Note: the CTRL-M works instead.

What follows is a very simple example to illustrate the issue:

import javafx.application.Application;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
import javafx.scene.layout.VBox;
import javafx.scene.input.KeyEvent;

public class WebViewSample extends Application {
private Scene scene;

@Override public void start(Stage stage) {
stage.setTitle("Web View");
WebView editor = new WebView();
WebEngine engine = editor.getEngine();
engine.setJavaScriptEnabled(true);
engine.loadContent("Type content
here...");
editor.setContextMenuEnabled(false);
editor.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {
System.out.println(evt.getCode()); });
VBox root = new VBox();
root.getChildren().add(editor);
scene = new Scene(root,750,500);
stage.setScene(scene);
stage.show();
}

public static void main(String[] args){
launch(WebViewSample.class, args);
}
}

As you can see the ENTER event is intercepted and printed out by the filter
but no newline is added.
This problem should not be confused with an old bug related to the JFXPanel
(here no swing is involved).
I have not tried with the latest builds of openjfx so just in case you are
aware of that and/or the problem is already resolved please ignore this
email.

Kind regards,

Mirco