[GH-ISSUE #2233] [Bug] Cmd + k triggers the link dialog when no text is selected #916

Closed
opened 2026-03-23 20:43:07 +00:00 by mirror · 7 comments
Owner

Originally created by @annieappflowy on GitHub (Apr 11, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2233

Originally assigned to: @Chandan-CV on GitHub.

Bug Description

ctrl+k even works if nothing is selected,

meaning if selection is empty then also a link dialog opens up, where you can add the link, but since no text is selected, the whole operation does nothing.

We may fix it by only opening up the link menu when and some text is selected.

How to Reproduce

When the cursor is active, press cmd+k

Expected Behavior

If text selection is empty, cmd+k doesn't trigger the link dialog

Operating System

MacOS

AppFlowy Version(s)

Main branch

Screenshots

No response

Additional Context

No response

Originally created by @annieappflowy on GitHub (Apr 11, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2233 Originally assigned to: @Chandan-CV on GitHub. ### Bug Description ctrl+k even works if nothing is selected, meaning if selection is empty then also a link dialog opens up, where you can add the link, but since no text is selected, the whole operation does nothing. We may fix it by only opening up the link menu when and some text is selected. ### How to Reproduce When the cursor is active, press cmd+k ### Expected Behavior If text selection is empty, cmd+k doesn't trigger the link dialog ### Operating System MacOS ### AppFlowy Version(s) Main branch ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@rwt-2001 commented on GitHub (Apr 18, 2023):

I would like to work on this issue.

<!-- gh-comment-id:1513615337 --> @rwt-2001 commented on GitHub (Apr 18, 2023): I would like to work on this issue.
Author
Owner

@annieappflowy commented on GitHub (May 9, 2023):

Hi @rwt-2001 , I missed your comment. Are you still keen to work on this issue?

<!-- gh-comment-id:1539406942 --> @annieappflowy commented on GitHub (May 9, 2023): Hi @rwt-2001 , I missed your comment. Are you still keen to work on this issue?
Author
Owner

@Chandan-CV commented on GitHub (May 9, 2023):

Hi @annieappflowy!
Can I work on this issue?

<!-- gh-comment-id:1540907426 --> @Chandan-CV commented on GitHub (May 9, 2023): Hi @annieappflowy! Can I work on this issue?
Author
Owner

@annieappflowy commented on GitHub (May 11, 2023):

Sure. Assigned it to you, @Chandan-CV

<!-- gh-comment-id:1543967670 --> @annieappflowy commented on GitHub (May 11, 2023): Sure. Assigned it to you, @Chandan-CV
Author
Owner

@Chandan-CV commented on GitHub (May 12, 2023):

Hi @annieappflowy!
Thank you for assigning me this issue.
I played around a little and figured out the issue is with the appflowy-editor. I took @Xazin's work as a reference, and sent a new PR solving this issue.
AppFlowy-IO/appflowy-editor/pull/117

I am a beginner in open source and AppFlowy, please correct me if I did something wrong, your guidance is appreciated 🚀 😄

Thank you!

<!-- gh-comment-id:1545665724 --> @Chandan-CV commented on GitHub (May 12, 2023): Hi @annieappflowy! Thank you for assigning me this issue. I played around a little and figured out the issue is with the appflowy-editor. I took @Xazin's work as a reference, and sent a new PR solving this issue. [AppFlowy-IO/appflowy-editor/pull/117](https://github.com/AppFlowy-IO/appflowy-editor/pull/117) I am a beginner in open source and AppFlowy, please correct me if I did something wrong, your guidance is appreciated :rocket: :smile: Thank you!
Author
Owner

@Chandan-CV commented on GitHub (May 13, 2023):

Screencast from 13-05-23 10:50:23 AM IST.webm

<!-- gh-comment-id:1546534924 --> @Chandan-CV commented on GitHub (May 13, 2023): [Screencast from 13-05-23 10:50:23 AM IST.webm](https://github.com/AppFlowy-IO/AppFlowy/assets/37525954/a957b0ae-4e44-408b-b022-0e9b8196b4fb)
Author
Owner

@annieappflowy commented on GitHub (Jul 11, 2023):

Fixed. Thanks everyone!

<!-- gh-comment-id:1630884823 --> @annieappflowy commented on GitHub (Jul 11, 2023): Fixed. Thanks everyone!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#916
No description provided.