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

Additions to KeyComboMatcher #36

Open
anhcraft opened this issue Feb 1, 2023 · 0 comments
Open

Additions to KeyComboMatcher #36

anhcraft opened this issue Feb 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@anhcraft
Copy link
Member

anhcraft commented Feb 1, 2023

A few ideas to the KeyComboMatcher - the one used for matching key combination:

  1. Test Commit Key
  • It works the same as #commitKey except that it does not change the given key state
  • It can be used in conditional statement, and ensure that the method does not cause any update to the argument.
    e.g: testCommitKey(keyState, Key.A)
  1. Has Sub-chain
  • Given an array of keys representing the heading sub-chain of key combination, returns whether the sub-chain exists
  • It can be used to customize the key-combo handling
    e.g: hasSubchain(Key. A, key.B, Key,C, Key.D)
@anhcraft anhcraft added the enhancement New feature or request label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant