Commit 3fa6c71 introduced the Ctrl+C hot key to copy a stage node. However, if we try to highlight some text in the UI and press Ctrl+C to copy it, we cannot copy those text.
For example, highlighting these words and pressing Ctrl+C cannot copy them.
Reason
The problem is caused by React Flow's useKeyPress(). If we comment out the following line, Ctrl+C works fine again:
Description
Commit 3fa6c71 introduced the
Ctrl+C
hot key to copy a stage node. However, if we try to highlight some text in the UI and pressCtrl+C
to copy it, we cannot copy those text.For example, highlighting these words and pressing
Ctrl+C
cannot copy them.Reason
The problem is caused by React Flow's
useKeyPress()
. If we comment out the following line,Ctrl+C
works fine again:Fix