Skip to content

Conversation

@5p00kyy
Copy link

@5p00kyy 5p00kyy commented Jan 16, 2026

Summary

  • Add onMouseOver and onMouseUp handlers to permission prompt option buttons
  • Allows users to select "Allow once", "Allow always", or "Reject" via mouse click or touch input
  • Selection follows cursor/touch on hover for visual feedback

Details

The permission prompt previously only supported keyboard navigation (arrow keys + enter). This change adds mouse/touch support following the existing pattern used throughout the codebase (e.g., dialog-confirm.tsx, question.tsx).

This is particularly useful for users running OpenCode in terminal emulators that support mouse/touch input (e.g., Termux on mobile devices).

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@5p00kyy
Copy link
Author

5p00kyy commented Jan 16, 2026

Closing as duplicate of #7967 which addresses the same issue (#7966).

@5p00kyy 5p00kyy closed this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant