[O] Allow arrow controls
This commit is contained in:
@@ -405,8 +405,10 @@ async fn pull_input(mt: Arc<Mutex<Mutes>>, cn: &Consts) -> Result<()> {
|
|||||||
mt.should_exit = true;
|
mt.should_exit = true;
|
||||||
break;
|
break;
|
||||||
},
|
},
|
||||||
"a" => move_x(-1),
|
// Move left on a or left arrow
|
||||||
"d" => move_x(1),
|
"a" | "\x1b[D" => move_x(-1),
|
||||||
|
// Move right on d or right arrow
|
||||||
|
"d" | "\x1b[C" => move_x(1),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user