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

Action shortcuts only available after side panel has been opened once #1469

Open
JosXa opened this issue May 4, 2024 · 1 comment
Open

Comments

@JosXa
Copy link
Contributor

JosXa commented May 4, 2024

Kit 2.9.4

Consider this minimal repro:

import '@johnlindquist/kit'

await arg('Test', [
  {
    name: 'Test',
    actions: [
      {
        name: 'Do something',
        onAction: () => console.log('Action executed'),
        shortcut: 'ctrl+j',
      },
    ],
  },
])
Carnac_kLWCMXco5O.mp4

Steps:

  1. Execute script
  2. Press Ctrl+J

Observe: Nothing happens. The action should have gotten invoked.


Steps:

  1. Execute script
  2. Press Arrow Right
  3. Press Ctrl+J

Observe: Nothing happens. The action should have gotten invoked.


Steps:

  1. Execute script
  2. Press Arrow Right
  3. Press Arrow Left
  4. Press Ctrl+J

Observe: The action gets invoked

@JosXa
Copy link
Contributor Author

JosXa commented May 6, 2024

The issue is even more severe in the editor, where custom actions are only available when the sidebar is open:

Kit_h93lZPeK2N.mp4

Not visible in the screenshot, but navigating "Back" from the sidebar also doesn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant