keystroke_listener 1.0.1
keystroke_listener: ^1.0.1 copied to clipboard
A Flutter package for keystroke_listener functionality
1.0.1 #
RoleFocusNodeclass added: FocusNode with a stable role identifier preserved in release builds.
1.0.0 #
- Complete package implementation with comprehensive features
- Added 18+ Intent classes for keyboard event handling:
- Basic navigation intents (Up, Down, Left, Right)
- System intents (Escape, Enter, Backspace, Space, Tab)
- Edit intents (Save, Undo, Redo, Select All, Copy, Paste, Cut, Toggle Comment)
- Function key intents (F1 Help)
- Enhanced
KeyListenerWrapperwidget with:- Full keyboard shortcut mapping for 20+ key combinations
- Support for both Ctrl (Windows/Linux) and Cmd (macOS) modifiers
- Reliable modifier key combination detection (Ctrl+X, Cmd+X, etc.)
- HardwareKeyboard state checking for robust key event handling
- Visual debug mode with SnackBar feedback showing modifiers
- Comprehensive FocusNode management
- Web-compatible focus handling
- Created comprehensive example application demonstrating:
- Basic keystroke handling
- Advanced keyboard shortcuts
- Event logging and monitoring
- Visual debug features
- Added comprehensive test suite covering:
- All Intent classes (18+ tests)
- Widget building and lifecycle (6+ tests)
- FocusNode management and transitions
- Edge cases and state changes
- Advanced widget interactions
- Total: 35+ individual tests
- Added MIT License
- Comprehensive documentation with usage examples, quick start guide, detailed usage patterns, platform-specific notes, and troubleshooting guide