Swift Keyboard Shortcuts Reference
Versie: 1.0
Datum: 27-12-2024
Status: E5.S3 - Keyboard Shortcuts Verificatie
🎹 Global Shortcuts (altijd actief)
| Shortcut |
Actie |
Context |
Status |
| ⌘K / Ctrl+K |
Focus command input |
Overal |
✅ Werkt |
| Escape |
Sluit actief block |
Als block open is |
✅ Werkt |
| ⌘Enter / Ctrl+Enter |
Quick submit command |
Als input focus heeft |
⏳ Toe te voegen |
📝 Command Input Shortcuts
| Shortcut |
Actie |
Context |
Status |
| Enter |
Verstuur commando |
In command input |
✅ Werkt (native form) |
| ⌘Enter / Ctrl+Enter |
Verstuur commando |
In command input |
⏳ Toe te voegen |
| Escape |
Clear input |
In command input (optioneel) |
❌ Niet geïmplementeerd |
🔍 FallbackPicker Shortcuts
| Shortcut |
Actie |
Context |
Status |
| 1 |
Selecteer Dagnotitie |
FallbackPicker open |
✅ Werkt |
| 2 |
Selecteer Zoeken |
FallbackPicker open |
✅ Werkt |
| 3 |
Selecteer Overdracht |
FallbackPicker open |
✅ Werkt |
| Escape |
Sluit FallbackPicker |
FallbackPicker open |
✅ Werkt |
📋 Block-Specific Shortcuts
DagnotatieBlock
| Shortcut |
Actie |
Context |
Status |
| ⌘Enter / Ctrl+Enter |
Opslaan dagnotitie |
In dagnotitie block |
⏳ Toe te voegen |
| Escape |
Sluit block |
In dagnotitie block |
✅ Werkt (global) |
ZoekenBlock
| Shortcut |
Actie |
Context |
Status |
| Enter |
Selecteer eerste resultaat |
In zoek input |
⏳ Optioneel |
| ↓ / ↑ |
Navigeer door resultaten |
In zoek input |
⏳ Optioneel |
| Escape |
Sluit block |
In zoeken block |
✅ Werkt (global) |
OverdrachtBlock
| Shortcut |
Actie |
Context |
Status |
| Escape |
Sluit block |
In overdracht block |
✅ Werkt (global) |
🎯 MVP Scope (E5.S3)
Voor de MVP implementeren we:
✅ Already Working
- ⌘K / Ctrl+K - Focus input
- Escape - Close block
- Enter - Submit form (native)
- 1-3 - FallbackPicker quick select
⏳ To Add
- ⌘Enter / Ctrl+Enter in CommandInput - Quick submit
- ⌘Enter / Ctrl+Enter in DagnotatieBlock - Quick save
❌ Out of Scope (Future)
- Arrow key navigation in search results
- Escape to clear input
- Tab for autocomplete
- Vim-style navigation (j/k)
🧪 Test Checklist
Global Shortcuts
Command Input
FallbackPicker
DagnotatieBlock
Edge Cases
📝 Implementation Notes
Cmd vs Ctrl Detection
Preventing Default Behavior
Conditional Shortcuts
Accessibility
- All shortcuts should have visual hints (e.g., "⌘K" label)
- Shortcuts should work with screen readers
- Focus management must be clear (visible focus ring)
🔧 Future Enhancements
Phase 2
- Cmd+Shift+K - Toggle voice input
- Cmd+/ - Show keyboard shortcuts help
- Cmd+P - Quick patient search
- Cmd+N - New dagnotitie
- Cmd+O - Open overdracht
Phase 3
- Customizable shortcuts (user preferences)
- Vim-style modal editing
- Search results navigation (arrow keys)
- Multi-block shortcuts (Cmd+1, Cmd+2, etc.)
📚 Resources