diff options
Diffstat (limited to 'src/Xanthous/Command.hs')
-rw-r--r-- | src/Xanthous/Command.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Xanthous/Command.hs b/src/Xanthous/Command.hs index ee9a7ad50dd2..94c8075b34ee 100644 --- a/src/Xanthous/Command.hs +++ b/src/Xanthous/Command.hs @@ -9,10 +9,11 @@ data Command = Quit | Move Direction | PreviousMessage - -- | PickUp + | PickUp commandFromKey :: Key -> [Modifier] -> Maybe Command commandFromKey (KChar 'q') [] = Just Quit + commandFromKey (KChar 'h') [] = Just $ Move Left commandFromKey (KChar 'j') [] = Just $ Move Down commandFromKey (KChar 'k') [] = Just $ Move Up @@ -24,4 +25,6 @@ commandFromKey (KChar 'n') [] = Just $ Move DownRight commandFromKey (KChar 'p') [MCtrl] = Just PreviousMessage +commandFromKey (KChar ',') [] = Just PickUp + commandFromKey _ _ = Nothing |