mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
use head over !!0
This commit is contained in:
parent
e886dc0f83
commit
a803a2ad72
@ -59,7 +59,7 @@ navKeys3 =
|
||||
-- This encoding depends on the terminal.
|
||||
functionKeys1 :: ClassifyMap
|
||||
functionKeys1 =
|
||||
let f ff nrs m = [ ("\ESC["++show n++"~",EvKey (KFun $ n-(nrs!!0)+ff) m) | n <- nrs ] in
|
||||
let f ff nrs m = [ ("\ESC["++show n++"~",EvKey (KFun $ n-head nrs+ff) m) | n <- nrs ] in
|
||||
concat [f 1 [25,26] [MShift], f 3 [28,29] [MShift], f 5 [31..34] [MShift] ]
|
||||
|
||||
-- | encoding for meta plus char
|
||||
|
Loading…
Reference in New Issue
Block a user