Skip to main content

Mountain/Command/Keybinding/
CheckKeybindingConflicts.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - detect chord-sequence overlaps in the current
4//! keybinding registry. Stub returns no conflicts; pending real
5//! implementation that scans the resolved set and reports source +
6//! command for each clash.
7
8use std::sync::Arc;
9
10use CommonLibrary::{Environment::Requires::Requires, Keybinding::KeybindingProvider::KeybindingProvider};
11use serde_json::{Value, json};
12use tauri::{AppHandle, Manager, Wry, command};
13
14use crate::{RunTime::ApplicationRunTime::ApplicationRunTime as Runtime, dev_log};
15
16#[command]
17pub async fn CheckKeybindingConflicts(ApplicationHandle:AppHandle<Wry>, Keybinding:String) -> Result<Value, String> {
18	dev_log!("keybinding", "checking conflicts for keybinding: {}", Keybinding);
19
20	let RunTime = ApplicationHandle.state::<Arc<Runtime>>().inner().clone();
21	let _Provider:Arc<dyn KeybindingProvider> = RunTime.Environment.Require();
22
23	Ok(json!({ "conflicts": [] }))
24}