A reactive Angular library for managing keyboard shortcuts with signals-based UI integration.
This is an Angular workspace containing:
projects/ngx-keys/
- The ngx-keys library source codeprojects/demo/
- Demo application showcasing library features- Library Documentation - See
projects/ngx-keys/README.md
for complete API documentation
npm install
npm start
Navigate to http://localhost:4200/
to see the demo.
ng build ngx-keys
npm test
- Reactive Signals: Track active/inactive shortcuts with Angular signals for seamless UI integration
- Dynamic Management: Add, remove, activate/deactivate shortcuts and groups at runtime
- Cross-Platform: Automatic Mac/PC key display formatting (
Ctrl+S
vs⌘+S
) - Group Management: Organize shortcuts into logical groups with bulk operations
- Conflict Detection: Comprehensive validation to prevent duplicate IDs and key combinations
- Browser-Safe: Documentation on avoiding browser conflicts
- Fully Tested: Comprehensive test coverage with Angular testing utilities
For complete API documentation, examples, and best practices, see: ngx-keys Library Documentation
Command | Description |
---|---|
npm start |
Start demo application at http://localhost:4200 |
npm test |
Run unit tests |
ng test ngx-keys |
Run library tests specifically |
ng build ngx-keys |
Build library for production |
ng build ngx-keys --watch |
Build library in watch mode |
ng build demo |
Build demo application |
ng test ngx-keys --watch=false |
Run tests once without watch mode |
ng build ngx-keys
ng build demo
-
Build the library:
ng build ngx-keys
-
Navigate to dist directory:
cd dist/ngx-keys
-
Publish to npm:
npm publish
0BSD © ngx-keys Contributors
This project is licensed under the BSD Zero Clause License - see the LICENSE file for details.