about summary refs log tree commit diff
path: root/src/types/command.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/types/command.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/command.rs b/src/types/command.rs
index 15017cde99..17ca4d280f 100644
--- a/src/types/command.rs
+++ b/src/types/command.rs
@@ -10,6 +10,9 @@ pub enum Command {
     /// Move the character in a direction
     Move(Direction),
 
+    /// Pick up any item(s) at the current position
+    PickUp,
+
     /// Display the previous message
     PreviousMessage,
 }
@@ -19,6 +22,7 @@ impl Command {
         use Command::*;
         match k {
             Char('q') => Some(Quit),
+
             Char('h') | Char('a') | Key::Left => Some(Move(Left)),
             Char('k') | Char('w') | Key::Up => Some(Move(Up)),
             Char('j') | Char('s') | Key::Down => Some(Move(Down)),
@@ -29,6 +33,8 @@ impl Command {
             Char('n') => Some(Move(DownRight)),
 
             Ctrl('p') => Some(PreviousMessage),
+            Char(',') => Some(PickUp),
+
             _ => None,
         }
     }