Skip to content

Hitting "Escape" in CTRL + K window of CopilotTextarea loses focus of the input field #399

Closed

Description

@arielweinberger

Describe the bug
Hitting "Escape" in CTRL + K window of CopilotTextarea loses focus of the input field

To Reproduce
Steps to reproduce the behavior (the easier it is to replicate, the sooner it will get fixed):

  1. Go to https://crm-demo-delta.vercel.app/
  2. Focus on the textarea field
  3. Type CMD + K / CTRL + K to open up the CopilotKit popover
  4. Press Esc to close it

Expected: To still be focused on the input field
Actual: Blurs out of the input field, needs a mouse click to get there again

Activity

  1. added
    bug
    on Jun 24, 2024
  2. ChiragAgg5k commented on Oct 3, 2024

    @ChiragAgg5k
    Contributor

    Hey there, i can work on this issue. can you assign it to me?

  3. kachurun commented on May 11, 2025

    @kachurun
    Contributor

    It also has another issue. If you lose focus from the textarea inside the floating window, you will completely lose the ability to close it with the ESC key.

  4. added a commit that references this issue on May 11, 2025
  5. kachurun commented on May 11, 2025

    @kachurun
    Contributor

    Fixed in PR above

  6. added a commit that references this issue on Feb 23, 2026
    a11f7be
  7. added a commit that references this issue on Mar 6, 2026
    3d088cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions