mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
feat: 使用 HotkeyManger::HotkeyPressed 事件监听热键
This commit is contained in:
parent
32bd456e16
commit
ef44ed34b0
10 changed files with 54 additions and 19 deletions
|
|
@ -34,8 +34,8 @@ ShortcutControl::ShortcutControl() {
|
|||
_settings = app.Settings();
|
||||
_hotkeyManager = app.HotkeyManager();
|
||||
|
||||
_hotkeyChangedToken = _settings.HotkeyChanged(
|
||||
winrt::auto_revoke, { this,&ShortcutControl::_Settings_OnHotkeyChanged });
|
||||
_hotkeyChangedRevoker = _settings.HotkeyChanged(
|
||||
auto_revoke, { this,&ShortcutControl::_Settings_OnHotkeyChanged });
|
||||
|
||||
_shortcutDialog.Title(box_value(L"激活快捷键"));
|
||||
_shortcutDialog.Content(_shortcutDialogContent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue