Skip to content

Commit

Permalink
DO NOT COPY BLOCKS when there is a selected text
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Oct 15, 2024
1 parent ce285d0 commit 13afcf9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const useCopyPasteNode = ({
);

useEventListener('keydown', (e) => {
if (window.getSelection()?.toString()) return;

if (
//eslint-disable-next-line
//@ts-ignore
Expand Down

0 comments on commit 13afcf9

Please sign in to comment.