forge
Explore
Log in

Don't you dare go Hollow

The arrow comment stops claiming no card consults the keymap

Browse files at this commit

dd3fe34ae5aa10aca72a18607702f238a40fc7b6Ahmet Kaan GümüşParent: 44ab0de
  • docs
    • the arrow comment stops claiming no card consults the keymap
Show full message
📝 docs(keys): the arrow comment stops claiming no card consults the keymap

The sentence said a card answers the stroke and returns before the keymap is consulted at all, which stopped being true for the six document strokes this lane made reachable (verifier finding H4). It now says the card answers its own strokes first and names the exception.
crates/app/src/keymap.rsmodified+6 -3
@@ -949,9 +949,12 @@ impl Keymap {
949949 // Seeking without a pointer, on the keys every player already
950950 // seeks with (gpui names them "left"/"right"/"home"/"end",
951951 // platform.rs:872-877). The colour card reads the same arrows
952- // for its sliders, but a card answers the stroke and returns
953- // before the keymap is consulted at all -- so these move the
954- // playhead only while no card is open.
952+ // for its sliders, and a card answers its own strokes before the
953+ // keymap is consulted -- the arrows among them -- so these move
954+ // the playhead only while no card is open. The document chords
955+ // are the exception and are not these: `Undo`, `Redo`, `Save`,
956+ // `Copy` and `Paste` reach the keymap whatever is up
957+ // (`ui::stance::card_safe_action`).
955958 b(ActionId::StepBack, "left", false),
956959 b(ActionId::StepForward, "right", false),
957960 b(ActionId::JumpBack, "left", true),