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

Hotkey Notation #50

Open
DrSensor opened this issue Jan 12, 2023 · 0 comments
Open

Hotkey Notation #50

DrSensor opened this issue Jan 12, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@DrSensor
Copy link
Owner

Note: This can be applied on any event. For example:

<canvas :: on:pointermove=[Shift-]:rotate />

Modifier

<div :: on:keyup=[Alt-Up]:count />

Combination

  • Works by queue .key value on keydown event. Delete queued .key on keyup event. The method will get called when the event fired while all key combination is in queue.
  • Use + as delimiter
<div :: on:keydown=[Tab+Left]:undo />

Sequence

  • Works by queue .key value on keyup event. Reset queue on keydown event if no matches. The method will get called when the event fired while all key sequence is in queue without getting reset.
  • Use , as delimiter
<input type=text :: on:click=[d,d]:deleteLine>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant