Function handle_snap_hotkey

Source
pub fn handle_snap_hotkey(ctx: &Context, snap: &mut bool) -> bool
Expand description

Bare S (no modifiers) toggles snapping — claimed here, ahead of the action table, so it can never race with Shift+S’s shape cycle above or with the N binding in hotkeys.rs (Action::ToggleSnap, still live and unaffected). *snap flips in place; the caller persists it. Returns true when it fired.