mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-22 05:34:04 +02:00
added ability to save hotkey into settings
This commit is contained in:
parent
1370408129
commit
79dd783bf7
4 changed files with 171 additions and 48 deletions
|
@ -120,17 +120,4 @@ pub fn start_keybind_capture() {
|
|||
#[tauri::command]
|
||||
pub fn stop_keybind_capture() {
|
||||
IS_CAPTURING_KEYBIND.store(false, Ordering::SeqCst);
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_current_keybind() -> String {
|
||||
// Implement logic to retrieve the current keybind from your configuration
|
||||
"Meta+V".to_string() // Placeholder
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn save_keybind(keybind: String) -> Result<(), String> {
|
||||
// Implement logic to save the new keybind to your configuration
|
||||
println!("Saving keybind: {}", keybind);
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue