Skip to content

Provide the ability to set a flag to enable the first click going to the application rather than just setting focus on MacOS #10451

@tilladam

Description

@tilladam

Feature Description

On macOS, by default the first click on a window only sets the focus but does not pass the event through to Slint. This can be configured on the native NSView ("acceptsFirstMouse"), which would have to happen in winit. The suggestion is to introduce a flag that makes this configurable at the Slint level. API docs are here:

https://developer.apple.com/documentation/appkit/nsview/acceptsfirstmouse(for:)

Product Impact

I'm building a desktop application with a node editor and the first click is often on a node, so users expect the node to be selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:platform-macosIssues specific to macOS (mS,bF)enhancementNew feature or requestneeds infoFurther information from the reporter is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions