DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/Keybinding/
CheckKeybindingConflicts.rs1use std::sync::Arc;
7
8use CommonLibrary::{Environment::Requires::Requires, Keybinding::KeybindingProvider::KeybindingProvider};
9use serde_json::{Value, json};
10use tauri::{AppHandle, Manager, Wry, command};
11
12use crate::{RunTime::ApplicationRunTime::ApplicationRunTime as Runtime, dev_log};
13
14#[command]
15pub async fn CheckKeybindingConflicts(ApplicationHandle:AppHandle<Wry>, Keybinding:String) -> Result<Value, String> {
16 dev_log!("keybinding", "checking conflicts for keybinding: {}", Keybinding);
17
18 let RunTime = ApplicationHandle.state::<Arc<Runtime>>().inner().clone();
19
20 let _Provider:Arc<dyn KeybindingProvider> = RunTime.Environment.Require();
21
22 Ok(json!({ "conflicts": [] }))
23}