feat: "esc" key function in help box
This commit is contained in:
+1
-2
@@ -84,13 +84,12 @@ pub fn tty_readable() -> bool {
|
||||
.is_ok()
|
||||
}
|
||||
|
||||
|
||||
struct AsyncTTY {
|
||||
rx: std::sync::mpsc::Receiver<u8>,
|
||||
}
|
||||
|
||||
impl AsyncTTY {
|
||||
/// Use an async timeout to read data from the file, and send to the "main" thread
|
||||
/// Use an async timeout to read data from the file, and send to the "main" thread
|
||||
async fn read_loop(mut f: File, tx: Sender<u8>) {
|
||||
loop {
|
||||
let mut buf = [0];
|
||||
|
||||
@@ -705,6 +705,11 @@ impl HelpInfo {
|
||||
button_item("1 - 9"),
|
||||
button_desc("sort by header - or click header"),
|
||||
]),
|
||||
Line::from(vec![
|
||||
space(),
|
||||
button_item("esc"),
|
||||
button_desc("close dialog"),
|
||||
]),
|
||||
Line::from(vec![
|
||||
space(),
|
||||
button_item("q"),
|
||||
|
||||
Reference in New Issue
Block a user