RFR: 8245575: Show the ContextMenu of input controls with long press gesture on iOS

Johan Vos jvos at openjdk.java.net
Mon Jun 8 09:26:49 UTC 2020

On Fri, 22 May 2020 11:45:25 GMT, Jose Pereda <jpereda at openjdk.org> wrote:

> This PR uses iOS long press gesture to generate a menu event that will trigger a `ContextMenuEvent`.
> Based on this event, input controls will show the ContextMenu (once JDK-8245499 is fixed), and if required, a developer
> could add an event handler based on `ContextMenuEvent.CONTEXT_MENU_REQUESTED` for custom processing of such event.

modules/javafx.graphics/src/main/native-glass/ios/GlassViewDelegate.m line 385:

> 384:     } else if (sender.state == UIGestureRecognizerStateEnded) {
> 385:         // Prevent touch ended event
> 386:         self.mouseTouch = nil;

no release event needed?


PR: https://git.openjdk.java.net/jfx/pull/232

More information about the openjfx-dev mailing list