Skip to content

Is it possible to have custom context menus (browser)? #50

Answered by pusolito
amarcolini asked this question in Q&A
Discussion options

You must be logged in to vote

This will be properly supported in 0.9.2. The menu will be suppressed if you consume the pointer pressed event for a view.

view.pointerChanged += {
    // ...
    if (Button2 in it.buttons) {
        // This will prevent the context menu in 0.9.2
        it.consume()
    }
}

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@pusolito
Comment options

@amarcolini
Comment options

@pusolito
Comment options

@pusolito
Comment options

Answer selected by pusolito
@pusolito
Comment options

@amarcolini
Comment options

@pusolito
Comment options

@pusolito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants