use super on windows for now
This commit is contained in:
parent
3bd65da75a
commit
09547c39b1
2 changed files with 1 additions and 7 deletions
|
|
@ -53,11 +53,6 @@ pub fn change_binding(
|
||||||
if let Err(e) = _unregister_shortcut(&app, binding_to_modify.clone()) {
|
if let Err(e) = _unregister_shortcut(&app, binding_to_modify.clone()) {
|
||||||
let error_msg = format!("Failed to unregister shortcut: {}", e);
|
let error_msg = format!("Failed to unregister shortcut: {}", e);
|
||||||
eprintln!("change_binding error: {}", error_msg);
|
eprintln!("change_binding error: {}", error_msg);
|
||||||
return Ok(BindingResponse {
|
|
||||||
success: false,
|
|
||||||
binding: None,
|
|
||||||
error: Some(error_msg),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate the new shortcut before we touch the current registration
|
// Validate the new shortcut before we touch the current registration
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,7 @@ export const getKeyName = (
|
||||||
case "meta":
|
case "meta":
|
||||||
// Windows key on Windows/Linux, Command key on Mac
|
// Windows key on Windows/Linux, Command key on Mac
|
||||||
if (osType === "macos") return "command";
|
if (osType === "macos") return "command";
|
||||||
if (osType === "windows") return "win";
|
return "super";
|
||||||
return "super"; // Linux convention
|
|
||||||
default:
|
default:
|
||||||
return baseModifier;
|
return baseModifier;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue