mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
fix: unexpected global hotkey regestion for windows 'Ctrl+Q' #3389
This commit is contained in:
parent
4f15bdf74d
commit
1a9a2ff9e0
@ -303,15 +303,6 @@ pub fn run() {
|
|||||||
hotkey::Hotkey::global().register("CMD+W", "hide")
|
hotkey::Hotkey::global().register("CMD+W", "hide")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
{
|
|
||||||
logging_error!(
|
|
||||||
Type::Hotkey,
|
|
||||||
true,
|
|
||||||
hotkey::Hotkey::global().register("Control+Q", "quit")
|
|
||||||
);
|
|
||||||
};
|
|
||||||
{
|
{
|
||||||
let is_enable_global_hotkey = Config::verge()
|
let is_enable_global_hotkey = Config::verge()
|
||||||
.latest()
|
.latest()
|
||||||
@ -336,14 +327,6 @@ pub fn run() {
|
|||||||
hotkey::Hotkey::global().unregister("CMD+W")
|
hotkey::Hotkey::global().unregister("CMD+W")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
{
|
|
||||||
logging_error!(
|
|
||||||
Type::Hotkey,
|
|
||||||
true,
|
|
||||||
hotkey::Hotkey::global().unregister("Control+Q")
|
|
||||||
);
|
|
||||||
};
|
|
||||||
{
|
{
|
||||||
let is_enable_global_hotkey = Config::verge()
|
let is_enable_global_hotkey = Config::verge()
|
||||||
.latest()
|
.latest()
|
||||||
@ -368,15 +351,6 @@ pub fn run() {
|
|||||||
hotkey::Hotkey::global().unregister("CMD+W")
|
hotkey::Hotkey::global().unregister("CMD+W")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
{
|
|
||||||
logging_error!(
|
|
||||||
Type::Hotkey,
|
|
||||||
true,
|
|
||||||
hotkey::Hotkey::global().unregister("Control+Q")
|
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user