Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

use super on windows for now

CJ Pais09547c39b1cf
diff --git a/src-tauri/src/shortcut.rs b/src-tauri/src/shortcut.rs
index f34244cd..7dc7da25 100644
--- a/src-tauri/src/shortcut.rs
+++ b/src-tauri/src/shortcut.rs
@@ -53,11 +53,6 @@ pub fn change_binding(
if let Err(e) = _unregister_shortcut(&app, binding_to_modify.clone()) {
let error_msg = format!("Failed to unregister shortcut: {}", e);
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
diff --git a/src/lib/utils/keyboard.ts b/src/lib/utils/keyboard.ts
index de8263f3..08af3924 100644
--- a/src/lib/utils/keyboard.ts
+++ b/src/lib/utils/keyboard.ts
@@ -49,8 +49,7 @@ export const getKeyName = (
case "meta":
// Windows key on Windows/Linux, Command key on Mac
if (osType === "macos") return "command";
- if (osType === "windows") return "win";
- return "super"; // Linux convention
+ return "super";
default:
return baseModifier;
}