Mountain/Command/Keybinding/
GetUserKeybindings.rs1#![allow(non_snake_case)]
2
3use std::sync::Arc;
12
13use CommonLibrary::{Environment::Requires::Requires, Keybinding::KeybindingProvider::KeybindingProvider};
14use serde_json::{Value, json};
15use tauri::{AppHandle, Manager, Wry, command};
16
17use crate::{RunTime::ApplicationRunTime::ApplicationRunTime as Runtime, dev_log};
18
19#[command]
20pub async fn GetUserKeybindings(ApplicationHandle:AppHandle<Wry>) -> Result<Value, String> {
21 dev_log!("keybinding", "getting user keybindings for UI");
22
23 let RunTime = ApplicationHandle.state::<Arc<Runtime>>().inner().clone();
24 let _Provider:Arc<dyn KeybindingProvider> = RunTime.Environment.Require();
25
26 Ok(json!({ "keybindings": [] }))
27}