dify icon indicating copy to clipboard operation
dify copied to clipboard

fix(workflow/hooks/use-shortcuts): resolve issue of copy shortcut not working in workflow debug and preview panel

Open Kevin9703 opened this issue 1 year ago • 0 comments

… working in workflow debug and preview panel

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

  • [ ] Please open an issue before creating a PR or link to an existing issue
  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

Unable to copy any content in workflow debug and preview panel by using copy shortcut (cmd+c) image

I'd like to explain that in order to avoid interaction issues caused by changing the logic of other shortcuts, I did not directly modify the logic of shouldHandleShortcut.

Fixes

Type of Change

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update, included: Dify Document
  • [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • [ ] Dependency upgrade

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] Test A
  • [ ] Test B

Kevin9703 avatar Sep 11 '24 04:09 Kevin9703