Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 0417f4fb1d6c0d719557a87c7f79d7f4671e92df 1 parent be4f887
Mikolaj Konarski Mikolaj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/Display/Vty.hs
3  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)
Please sign in to comment.
Something went wrong with that request. Please try again.