Skip to content

Commit

Permalink
Merge pull request #5 from qwertyyb/main
Browse files Browse the repository at this point in the history
fix: fix KeyModifierParser.fromModifierKey
  • Loading branch information
lijy91 authored Dec 19, 2021
2 parents daf35cf + 9c2f5df commit c7d8c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/enums/key_modifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ extension KeyModifierParser on KeyModifier {
return KeyModifier.values.firstWhere((e) => describeEnum(e) == string);
}

static ModifierKey? fromModifierKey(ModifierKey modifierKey) {
static KeyModifier? fromModifierKey(ModifierKey modifierKey) {
return _knownModifierKeys.entries
.firstWhere((entry) => entry.value == modifierKey)
.value;
.key;
}

ModifierKey get modifierKey {
Expand Down

0 comments on commit c7d8c84

Please sign in to comment.