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

Example code? #81

Open
andreaslarssen opened this issue Aug 24, 2023 · 2 comments
Open

Example code? #81

andreaslarssen opened this issue Aug 24, 2023 · 2 comments

Comments

@andreaslarssen
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

I followed the readme, and can't get this thing to work.

What I did:

  1. Installed the package
  2. Imported it in app.module
  3. Used the directive like so:
<input hotkeys="meta.a" (hotkey)="handleHotkey($event)" />
  1. TS file:
 handleHotkey(event: any) {
    console.log(event);
  }
  1. Nothing

Am I misunderstanding something?
Also, I'm not that familiar with the hotkey annotation, it would be good with a section in the docs explaining the different combinations. What's the difference (if any) between meta.a and meta+a?

Expected behavior

An event

Minimal reproduction of the problem with instructions

See above.

What is the motivation / use case for changing the behavior?

Environment


Angular version: ^16.1.0


Browser:
- [x] Chrome (desktop) version 115.0.5790.173
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: v16.17.1  
- Platform:  Widows 

Others:

@sysmat
Copy link

sysmat commented Aug 24, 2024

wtf is meta?

@Jakartoine
Copy link

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

3 participants