Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/Keybinding/
CheckKeybindingConflicts.rs

1//! Tauri command - detect chord-sequence overlaps in the current
2//! keybinding registry. Stub returns no conflicts; pending real
3//! implementation that scans the resolved set and reports source +
4//! command for each clash.
5
6use 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}