diff --git a/README.md b/README.md index 2b070e1..dd7b9f0 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ $ cargo run TODO |Keys|Description| |---|---| -|w, s|Move up and down| -|Shift+W, Shift+S|Drag the current item up and down| +|k, j|Move cursor up and down| +|Shift+K, Shift+J|Drag the current item up and down| |q|Quit| |TAB|Switch between the TODO and DONE panels| |Enter|Perform an action on the highlighted UI element| diff --git a/src/main.rs b/src/main.rs index badf1d5..2eedda0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -372,19 +372,19 @@ fn main() { let key = getch(); match key as u8 as char { 'q' => quit = true, - 'W' => match panel { + 'K' => match panel { Status::Todo => list_drag_up(&mut todos, &mut todo_curr), Status::Done => list_drag_up(&mut dones, &mut done_curr), }, - 'S' => match panel { + 'J' => match panel { Status::Todo => list_drag_down(&mut todos, &mut todo_curr), Status::Done => list_drag_down(&mut dones, &mut done_curr), }, - 'w' => match panel { + 'k' => match panel { Status::Todo => list_up(&mut todo_curr), Status::Done => list_up(&mut done_curr), }, - 's' => match panel { + 'j' => match panel { Status::Todo => list_down(&todos, &mut todo_curr), Status::Done => list_down(&dones, &mut done_curr), },