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.6 KiB
Plaintext
29 lines
1.6 KiB
Plaintext
---
|
||
source: tests/helpers/mod.rs
|
||
assertion_line: 31
|
||
expression: self.backend
|
||
|
||
---
|
||
┌──────────────────────────────────────────────────┐
|
||
│[38;5;3m✖[39m [1mmessage[22m [38;5;8m·[39m [38;5;8mSkipped[39m │
|
||
│[38;5;0m[48;5;7m [39m[49m │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
└──────────────────────────────────────────────────┘
|