Register Alt+Q, and just pressing the Q key will also perform the keyDownHandler callback
CanFor opened this issue · 1 comments
CanFor commented
HotKey _hotKey = HotKey(
key: PhysicalKeyboardKey.keyQ,
modifiers: [HotKeyModifier.alt],
// Set hotkey scope (default is HotKeyScope.system)
scope: HotKeyScope.inapp, // Set as inapp-wide hotkey.
);
await hotKeyManager.register(
_hotKey,
keyDownHandler: (hotKey) {
print('onKeyDown+${hotKey.toJson()}');
},
// Only works on macOS.
keyUpHandler: (hotKey) {
print('onKeyUp+${hotKey.toJson()}');
},
);
Register only Alt+Q or Alt+Q and Q, press Q, and only perform the keyDownHandler callback of Alt+Q, need help to check,thanks.
lijy91 commented
Fixed in v0.2.1