Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Editor: address the inability to use keyboard shortcuts without focus #52881

Open
jameskoster opened this issue Jul 24, 2023 · 7 comments
Open
Labels
[Package] Commands /packages/commands [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

k.mp4

In the vide above, please notice the keypresses marked bottom-center.

It's only possible to invoke cmdk when focus resides in the viewport. In other words you either need to press tab, or click somewhere in the window before you can access the Command Palette via keyboard.

I don't know if there's anything we can do about this, but it's a bit unexpected and makes the cmdk experience feel a little clunky.

@jameskoster jameskoster added the [Type] Bug An existing feature does not function as intended label Jul 24, 2023
@jordesign jordesign added the [Package] Commands /packages/commands label Jul 24, 2023
@jordesign
Copy link
Contributor

I can confirm I've tested and recreated this behaviour in both 6.2.2 and also 6.3 RC1

@Mamaduka
Copy link
Member

This is a known issue with keyboard shortcuts and is not specific to Commands. The editor has to have a "focus" for shortcuts to work.

There's a similar issue with Disctraion Free mode - #45151 (review).

@annezazu
Copy link
Contributor

@Mamaduka is there any overarching issue we can link to? If not, let's turn this one into that. Going to remove from UX & Polish as this isn't a straightforward fix if so.

@annezazu annezazu removed this from Polish Jul 25, 2023
@Mamaduka
Copy link
Member

@annezazu, I don't believe so. Let's turn this one into that or create a new,

@jameskoster
Copy link
Contributor Author

Please feel free to edit the OP as needed :)

@annezazu annezazu changed the title Unable to open the Command Palette immediately after entering the site editor Site Editor: address the inability to use keyboard shortcuts without focus Jul 25, 2023
@annezazu
Copy link
Contributor

Renamed for now :D

@draganescu draganescu removed the [Type] Bug An existing feature does not function as intended label Aug 31, 2023
@draganescu
Copy link
Contributor

I wouldn't call this a bug so I removed the label.

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Commands /packages/commands [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants