Merge pull request #378 from kinode-dao/dr/add-delete

add delete key to terminal
This commit is contained in:
doria 2024-06-05 02:02:41 +09:00 committed by GitHub
commit 29e40f26d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,7 +521,7 @@ pub async fn terminal(
cursor::MoveTo(cursor_col, win_rows),
)?;
},
KeyCode::Backspace => {
KeyCode::Backspace | KeyCode::Delete => {
if line_col == prompt_len {
continue;
}