chore: remove windows esc shortcut key

This commit is contained in:
huzibaca 2024-10-14 13:45:26 +08:00
parent 90361242ac
commit 12690ed464
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -156,7 +156,6 @@ pub fn run() {
#[cfg(not(target_os = "macos"))]
{
log_err!(hotkey::Hotkey::global().register("Control+Q", "quit"));
log_err!(hotkey::Hotkey::global().register("Escape", "quit"));
};
}
tauri::WindowEvent::Focused(false) => {
@ -168,7 +167,6 @@ pub fn run() {
#[cfg(not(target_os = "macos"))]
{
log_err!(hotkey::Hotkey::global().unregister("Control+Q"));
log_err!(hotkey::Hotkey::global().unregister("Escape"));
};
}
_ => {}