Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initial
isPressed
registration in KeyboardShortcutsExample
The `isPressed` indicator was not changing for shortcuts created with the `DynamicShortcutRecorder`. This was caused by registration having been done with `.onChange(of:_:)` - where `action` is only evaluated with the first change of the value. Specify `initial` so that it is evaluated on appearance as well.
- Loading branch information