specialSupportKeys: add cases for Meta-PageUp and Meta-PageDown (fixes #193)

This commit is contained in:
Jonathan Daugherty 2020-11-04 18:11:43 -08:00
parent 17e2560846
commit 27e9bf77a5

View File

@ -86,8 +86,10 @@ ctrlMetaChars = map (\(s,EvKey c m) -> ('\ESC':s, EvKey c (MMeta:m))) ctrlChars
-- | Esc, meta-esc, delete, meta-delete, enter, meta-enter.
specialSupportKeys :: ClassifyMap
specialSupportKeys =
[ -- special support for ESC
("\ESC",EvKey KEsc []), ("\ESC\ESC",EvKey KEsc [MMeta])
[ ("\ESC\ESC[5~",EvKey KPageUp [MMeta])
, ("\ESC\ESC[6~",EvKey KPageDown [MMeta])
-- special support for ESC
, ("\ESC",EvKey KEsc []), ("\ESC\ESC",EvKey KEsc [MMeta])
-- Special support for backspace
, ("\DEL",EvKey KBS []), ("\ESC\DEL",EvKey KBS [MMeta])
-- Special support for Enter