Skip to content

Duo Chat does not focus when using keyboard shortcut, and the chat is already opened

Checklist

Summary

When the Duo Chat window is open and I'm inside a file, when using the keyboard shortcut to open the Duo Chat, it does not move the cursor to Duo Chat window input.

Steps to reproduce

  1. Open the VSCode Keyboard Shortcuts
  2. Set either GitLab Duo Chat: Focus on Experiment View or GitLab Duo Chat: Open chat to your desired key binding. I'll use Option+Shift+D.
  3. Go for example to the explorer window (CMD+Shift+E by default - the goal is to close the Duo Chat window)
  4. Press Option+Shift+D. It opens the Duo Chat window, and focus to the Duo Chat input.
  5. Keep the Duo chat window open, and open a file to move the focus to this file in editor mode
  6. Press Option+Shift+D. The focus will not go back to the Duo Chat window.

What is the current bug behavior?

The focus does not go to the Duo Chat window input when using the following keyboard shortcuts:

  • GitLab Duo Chat: Focus on Experiment View
  • GitLab Duo Chat: Open chat

What is the expected correct behavior?

The focus should go to the Duo Chat window input.

Edited by David Dieulivol