Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-09 Thread John Hendrikx
On Sat, 9 Nov 2024 00:49:22 GMT, Martin Fox wrote: > > I checked the events that are copied, and it is basically making the copy > > to adjust the source (target remains constant). That's really odd; I'd > > expect the source to remain the same as well (ie. the Scene or Window, not > > the "pr

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Martin Fox
On Sat, 9 Nov 2024 00:22:42 GMT, John Hendrikx wrote: > I checked the events that are copied, and it is basically making the copy to > adjust the source (target remains constant). That's really odd; I'd expect > the source to remain the same as well (ie. the Scene or Window, not the > "previou

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Fri, 8 Nov 2024 22:05:15 GMT, Martin Fox wrote: > FWIW, checking the isConsumed flag will only work if the action is consumed > by a handler registered directly with the TextField. If there's a filter or > handler attached to some other part of the scene graph a copy of the event > will be

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Martin Fox
On Fri, 8 Nov 2024 20:44:17 GMT, John Hendrikx wrote: >> @kleopatra Your explanation makes sense to me. Thank you for taking the time >> to write it up. >> >> If so, the proposed fix, including adjusting the comment, would be: >> >> >> --- >> a/modules/javafx.controls/src/main/java/com/sun/j

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Fri, 8 Nov 2024 16:28:17 GMT, Kevin Rushforth wrote: >> @hjohn @kevinrushforth @aghaisas >> >> hmm .. it's been a while but you might be on to something. >> >> Let's recap: >> >> - the first issue to get fixed was JDK-8207774: the problem was that the >> isConsumed always was false (due

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Kevin Rushforth
On Fri, 8 Nov 2024 15:39:57 GMT, Jeanette Winzenburg wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextFieldBehavior.java >> line 190: >> >>> 188: if (onAction != null || actionEvent.isConsumed()) { >>> 189: event.consume(); >>> 190:

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Jeanette Winzenburg
On Fri, 8 Nov 2024 15:31:04 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextFieldBehavior.java >> line 190: >> >>> 188: if (onAction != null || actionEvent.isConsumed()) { >>> 189: event.consume(); >>> 190:

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Andy Goryachev
On Fri, 8 Nov 2024 12:48:45 GMT, John Hendrikx wrote: >> Jeanette Winzenburg has updated the pull request incrementally with one >> additional commit since the last revision: >> >> added tests to guard against JDK-8145515 > > modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Wed, 11 Dec 2019 12:26:27 GMT, Jeanette Winzenburg wrote: >> This is a fix for https://bugs.openjdk.java.net/browse/JDK-8207759 >> >> The issue is that default/cancel button on a scene are triggered even though >> a onKeyPressed handler for ENTER/CANCEL consumes the keyEvent. See the bug >