fix(cli): simplify Desktop picker controls [skip ci]
Remove numeric shortcuts and their labels so target selection has one visible navigation model: arrow keys followed by Enter. Keep Ctrl+C cancellation and attachment behavior unchanged. Update the CLI guide and real-key regression tests to verify that 1 and 2 no longer move the highlight.
This commit is contained in:
1 parent
cf74d1c7e5
commit
d641026fc8
3 files changed
+4
-6
No files matched your search
@@ -216,8 +216,8 @@ def test_absent_desktop_selects_current_python(monkeypatch, capsys) -> None:
|
||||
("\x1b[B\r", "python"),
|
||||
("\x1b[B\x1b[A\r", "desktop"),
|
||||
("\x1b[A\r", "python"),
|
||||
("2\r", "python"),
|
||||
("21\r", "desktop"),
|
||||
("2\r", "desktop"), # Numeric keys no longer move the highlight.
|
||||
("\x1b[B1\r", "python"),
|
||||
])
|
||||
def test_target_picker_accepts_real_navigation_keys(keys, expected):
|
||||
with create_pipe_input() as pipe_input:
|
||||
|
||||
Reference in new issue
Block a user