Keyboard shortcut for inserting from search menu to composer not working in Markdown mode

AI-generated summary

A bug has been reported where the keyboard shortcut A fails to insert selected search results into the Markdown composer — instead, it modifies the search query itself. rkda initially reported the issue and provided a screencast demonstrating the behavior in Markdown mode on Chrome/MacOS. chapoi initially couldn’t reproduce it but later confirmed the bug specifically in Markdown composer 4. rkda noted the shortcut works in the new composer, confirming the issue is isolated to Markdown mode. lindsey acknowledged the bug, cleaned up the report, and tagged it pr-welcome to encourage community contributions. As a workaround, chapoi suggested using cmd+K or the insert-link button in the composer toolbar — a method rkda found even smoother. The issue remains open for a fix.

:information_source: Overview

The shortcut to insert search results into the composer is not working reliably in Markdown mode.

:walking_woman: Steps to reproduce

  1. Open the composer and make sure it’s set to Markdown mode.

  2. Click on the search icon and submit a search.

  3. Use the arrow keys on your keyboard to highlight a topic in the search results.

  4. Hit the a key.

:white_check_mark: Expected results

The link to the highlighted topic should be inserted into the composer.

:x: Observed results

The link to the highlighted topic is inserted into the search field.

:books: Additional context

Original report from @rkda:

I used to be able to insert search results from the search menu using the A shortcut.

Here’s the workflow:

  1. Open Composer.
  2. Use Ctrl⌥F to open Search Menu.
  3. Input search term and press Enter
  4. Use ↓/↑ to navigate to preferred result
  5. Press A to insert result to composer

Now it just changes the search term.

Am I doing it wrong or is this workflow just broken?

1 Like

This is odd, I just repro’d your steps and it works perfectly for me.

So let’s start from the top: can you repro this behaviour here on meta too or is it on your own site?

Are you using markdown or new composer?

Do you have any components modifying search?

A video to illustrate might help too!

2 Likes

Got it. Here’s my recording:

CleanShot 2025-08-11 at 17.10.09

I used the Markdown composer.

None that I know of. Are there components that are known to interfere with search?

I am using Chrome on MacOS if that helps.

2 Likes

Ah, interesting. With markdown composer I can repro it too here. Thanks, will need to be investigated

3 Likes

So I was not just imagining things :laughing:

I was able to use it on the new composer though :smiley: Glad to know it works somehow :slight_smile: Looking forward to the fix!

1 Like

@rkda Thanks for the report; this was on our radar but we have not gotten to fixing it yet. I’ve touched up the OP and tagged as pr-welcome in case anyone in the community wants to take a stab at fixing this!

2 Likes

Just in case you aren’t aware:

You can pretty much do the same thing directly form composer by using cmd+K or click the insert-link in the composer toolbar.

It’s a pretty handy “workaround” to achieve the same result while waiting for a PR, arguably easier?

4 Likes

Got it!

Oh, this actually feels smoother for me. Thanks for the tip! :smiley:

2 Likes