Skip to content

Conversation

salah9003
Copy link

Fixes cases where Ctrl+V (or Ctrl+Shift+V) fails to attach images from the clipboard, particularly on Windows terminals.

  • Windows generates Release events for Ctrl+V, while Linux/macOS generate Press events
  • Updated event matching to handle both KeyEventKind::Press and KeyEventKind::Release
  • Maintains backward compatibility across all platforms
  • Fixes clipboard image paste not working on Windows systems

Fixes #2597 (primary Windows pasting bug)
Fixes #2221

Copy link

github-actions bot commented Aug 23, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@salah9003
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Aug 23, 2025
@salah9003 salah9003 force-pushed the fix-clipboard-image-paste-windows branch 4 times, most recently from 86a6601 to 8a7f394 Compare August 26, 2025 17:58
…paste

- Windows generates Release events for Ctrl+V, while Linux/macOS generate Press events
- Updated event matching to handle both KeyEventKind::Press and KeyEventKind::Release
- Maintains backward compatibility across all platforms
- Fixes clipboard image paste not working on Windows systems
@salah9003 salah9003 force-pushed the fix-clipboard-image-paste-windows branch from 8a7f394 to 733ca7d Compare August 26, 2025 23:18
@salah9003 salah9003 changed the title fix(tui): handle both Press and Release events for Ctrl+V image paste fix(windows): Enable Ctrl+V image paste on Windows terminals Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant