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

[Extension API] Custom commands and keybindings #1075

Merged
merged 20 commits into from
Oct 3, 2024
Merged

[Extension API] Custom commands and keybindings #1075

merged 20 commits into from
Oct 3, 2024

Conversation

huchenlei
Copy link
Member

Extensions can now use following API to register custom keybindings:

  app.registerExtension({
    name: 'TestExtension1',
    commands: [
      {
        id: 'TestCommand',
        function: () => {
          alert('TestCommand')
        }
      }
    ],
    keybindings: [
      {
        combo: { key: 'k' },
        commandId: 'TestCommand'
      }
    ]
  })

Proper support for user keybinding customizations coming soon.

@huchenlei huchenlei merged commit 77aaa38 into main Oct 3, 2024
9 checks passed
@huchenlei huchenlei deleted the keybinding branch October 3, 2024 01:38
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

Successfully merging this pull request may close these issues.

1 participant