Skip to main content

handle_ui_set_shortcut

Function handle_ui_set_shortcut 

Source
pub(crate) async fn handle_ui_set_shortcut(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<UiSetShortcutRequest>,
) -> impl IntoResponse
Expand description

POST /api/v1/ui/shortcuts/set — backs UI action bind. The page applies the same edit the Settings view makes and refuses what an agent may not do (a key another command has, a key the system takes); the person is told and can undo it.