Earlier, when the user pressed the `Esc` key, nothing would happen as `ui::Input` would just pass the event on to the prompt. Now 2 other actions can be specified. `OnEsc::Terminate`: returns an `Err` which will propagate upwards, essentially cancelling the `PromptModule` `OnEsc::SkipQuestion`: returns `None`, showing that the question has been skipped Implements #6
29 lines
1.7 KiB
Plaintext
29 lines
1.7 KiB
Plaintext
---
|
||
source: tests/helpers/mod.rs
|
||
assertion_line: 31
|
||
expression: self.backend
|
||
|
||
---
|
||
┌──────────────────────────────────────────────────┐
|
||
│[38;5;10m? [1m[39mmessage[22m [38;5;8m(Press <space> to select, <a> to toggle [39m│
|
||
│[38;5;8mall, <i> to invert selection)[39m │
|
||
│[38;5;6m❯ [38;5;8m✔ [38;5;6mChoice 0[39m │
|
||
│ [38;5;8mSeparator 1[39m │
|
||
│ [38;5;8m──────────────[39m │
|
||
│ [38;5;8m✔ [39mChoice 3 │
|
||
│ [38;5;8m✔ [39mChoice 4 │
|
||
│ [38;5;8mSeparator 5[39m │
|
||
│ [38;5;8m✔ [39mChoice 6 │
|
||
│ [38;5;8m✔ [39mChoice 7 │
|
||
│ [38;5;8m✔ [39mChoice 8 │
|
||
│ [38;5;8m✔ [39mChoice 9 │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
└──────────────────────────────────────────────────┘
|