fix:macos ipfs-desktop left click no focus#2983
Conversation
|
Thank you for submitting this PR!
Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
We currently aim to provide initial feedback/triaging on best-effort basis, which may take multiple business. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution. |
port fix from ipfs/ipfs-desktop#2983 to ensure interactive elements (inputs, buttons, selects) work properly within electron's draggable regions by setting app-region: no-drag this resolves left-click focus issues on macos where inputs were not receiving focus due to pointer events being blocked
There was a problem hiding this comment.
Thank you for fixing this @SAHU-01 ❤️
I think we want this to be fixed for all webui users, not just desktop ones.
Let's close this and instead fix this upstream in webui in ipfs/ipfs-webui#2416 – let's continue there
* fix: macos input focus issue in draggable regions port fix from ipfs/ipfs-desktop#2983 to ensure interactive elements (inputs, buttons, selects) work properly within electron's draggable regions by setting app-region: no-drag this aims to resolve left-click focus issues on macos where inputs were not receiving focus due to pointer events being blocked * docs: simplify css comments
This fixes #2943
Problem: On macOS, left-clicks on WebUI inputs didn’t focus because they sat inside an Electron draggable region (app-region: drag) that swallowed pointer events.
Solution: Injected CSS from the Electron shell to mark interactive controls as app-region: no-drag, restoring normal left/right click behavior across loads and in-page navigation.