The arrow comment stops claiming no card consults the keymap
Browse files at this commitdd3fe34ae5aa10aca72a18607702f238a40fc7b6Parent: 44ab0de- docs
- the arrow comment stops claiming no card consults the keymap
1 changed file +6 -3
- crates/app/src/keymap.rs +6 -3
crates/app/src/keymap.rsmodified+6 -3
| @@ -949,9 +949,12 @@ impl Keymap { | ||
| 949 | 949 | // Seeking without a pointer, on the keys every player already |
| 950 | 950 | // seeks with (gpui names them "left"/"right"/"home"/"end", |
| 951 | 951 | // 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`). | |
| 955 | 958 | b(ActionId::StepBack, "left", false), |
| 956 | 959 | b(ActionId::StepForward, "right", false), |
| 957 | 960 | b(ActionId::JumpBack, "left", true), |