Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Mar 2, 2024
1 parent fee64c8 commit 6a223ca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 32 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/hotkey_manager/example
run: |
melos bs
flutter build linux --release
build-macos:
Expand All @@ -36,7 +35,6 @@ jobs:
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/hotkey_manager/example
run: |
melos bs
flutter build macos --release
build-web:
Expand All @@ -50,7 +48,6 @@ jobs:
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/hotkey_manager/example
run: |
melos bs
flutter build web --release
build-windows:
Expand All @@ -64,5 +61,4 @@ jobs:
- uses: bluefireteam/melos-action@v3
- working-directory: ./packages/hotkey_manager/example
run: |
melos bs
flutter build windows --release
16 changes: 3 additions & 13 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,7 @@

```yaml
dependencies:
hotkey_manager: ^0.1.7
```


```yaml
dependencies:
hotkey_manager:
git:
url: https://github.com/leanflutter/hotkey_manager.git
ref: main
hotkey_manager: ^0.2.0
```

#### Linux requirements
Expand Down Expand Up @@ -92,8 +82,8 @@ void main() async {
```dart
// ⌥ + Q
HotKey _hotKey = HotKey(
KeyCode.keyQ,
modifiers: [KeyModifier.alt],
key: PhysicalKeyboardKey.keyQ,
modifiers: [HotKeyModifier.alt],
// 设置热键范围(默认为 HotKeyScope.system)
scope: HotKeyScope.inapp, // 设置为应用范围的热键。
);
Expand Down
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,7 @@ Add this to your package's pubspec.yaml file:

```yaml
dependencies:
hotkey_manager: ^0.1.7
```

Or

```yaml
dependencies:
hotkey_manager:
git:
url: https://github.com/leanflutter/hotkey_manager.git
ref: main
hotkey_manager: ^0.2.0
```

#### Linux requirements
Expand Down Expand Up @@ -92,8 +82,8 @@ Register/Unregsiter a system/inapp wide hotkey.
```dart
// ⌥ + Q
HotKey _hotKey = HotKey(
KeyCode.keyQ,
modifiers: [KeyModifier.alt],
key: PhysicalKeyboardKey.keyQ,
modifiers: [HotKeyModifier.alt],
// Set hotkey scope (default is HotKeyScope.system)
scope: HotKeyScope.inapp, // Set as inapp-wide hotkey.
);
Expand Down
7 changes: 5 additions & 2 deletions packages/hotkey_manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
## 0.1.8
## 0.2.0

* feat: Convert to federated plugin
* feat: Use flutter built-in keymap (provided through the `uni_platform` package)
* chore: Use `HardwareKeyboard` to replace the `RawKeyboard` api
* bump flutter to 3.19.2
* fix: crash if toString called with null modifiers (#25)
* Update dependencies & add three keys (#28)
* bump flutter to 3.10.2

## 0.1.7

Expand Down

0 comments on commit 6a223ca

Please sign in to comment.