Skip to main content

keybind_scope

Function keybind_scope 

Source
pub fn keybind_scope(key: &str) -> &'static str
Expand description

What: Determine the conflict-detection scope for a keybind action.

Inputs:

  • key: Canonical keybind action key.

Output:

  • Static label identifying the scope (global, search, search_normal, recent, install, or news).

Details:

  • Two bindings collide only when they share both a chord and this scope.
  • Same-chord rebinds across scopes (e.g. Left for pane_left and search_focus_left) are considered intentional and do not conflict.