Permalink
Browse files

vty support status update: vty maintainer OK with numpad number keys

I'll prepare a patch to differentiate numpad and top row number keys.
  • Loading branch information...
1 parent be4f887 commit 0417f4fb1d6c0d719557a87c7f79d7f4671e92df @Mikolaj Mikolaj committed Jan 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Display/Vty.hs
View
@@ -48,7 +48,8 @@ keyTranslate e =
V.EvKey KPageDown [] -> Just K.PgDn
V.EvKey KBegin [] -> Just K.Begin
-- No KP_ keys in vty; maintainer contacted, we'll see.
- -- For now, movement keys are more important than hero selection:
+ -- Update: maintainer is willing to accept a patch. Will do.
+ -- For now, though, movement keys are more important than hero selection:
V.EvKey (KASCII c) []
| c `elem` "123456789" -> Just (K.KP c)
| otherwise -> Just (K.Char c)

0 comments on commit 0417f4f

Please sign in to comment.