mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
specialSupportKeys: add cases for Meta-PageUp and Meta-PageDown (fixes #193)
This commit is contained in:
parent
17e2560846
commit
27e9bf77a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user