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 50fe4abb4561..10fa552b342f 100644 --- a/src/Xanthous/Command.hs +++ b/src/Xanthous/Command.hs @@ -8,8 +8,8 @@ import Xanthous.Data (Direction(..)) data Command = Quit | Move Direction - | PickUp | PreviousMessage + -- | PickUp commandFromKey :: Key -> [Modifier] -> Maybe Command commandFromKey (KChar 'q') [] = Just Quit @@ -17,4 +17,7 @@ commandFromKey (KChar 'h') [] = Just $ Move Left commandFromKey (KChar 'j') [] = Just $ Move Down commandFromKey (KChar 'k') [] = Just $ Move Up commandFromKey (KChar 'l') [] = Just $ Move Right + +commandFromKey (KChar 'p') [MCtrl] = Just PreviousMessage + commandFromKey _ _ = Nothing |