Sketch in a table for the keybindings UI (#32436)
Adds the initial semblance of a keymap UI. It is currently gated behind the `settings-ui` feature flag. Follow up PRs will add polish and missing features. Release Notes: - N/A --------- Co-authored-by: Ben Kunkle <ben@zed.dev> Co-authored-by: Anthony <anthony@zed.dev>
This commit is contained in:
parent
32906bfa7c
commit
7609ca7a8d
23 changed files with 1967 additions and 494 deletions
|
@ -8,11 +8,12 @@ use itertools::Itertools;
|
|||
|
||||
#[derive(Debug, IntoElement, Clone, RegisterComponent)]
|
||||
pub struct KeyBinding {
|
||||
/// A keybinding consists of a key and a set of modifier keys.
|
||||
/// More then one keybinding produces a chord.
|
||||
/// A keybinding consists of a set of keystrokes,
|
||||
/// where each keystroke is a key and a set of modifier keys.
|
||||
/// More than one keystroke produces a chord.
|
||||
///
|
||||
/// This should always contain at least one element.
|
||||
key_binding: gpui::KeyBinding,
|
||||
/// This should always contain at least one keystroke.
|
||||
pub key_binding: gpui::KeyBinding,
|
||||
|
||||
/// The [`PlatformStyle`] to use when displaying this keybinding.
|
||||
platform_style: PlatformStyle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue