CustomKeybindingDemo: comment

This commit is contained in:
Jonathan Daugherty 2022-08-02 19:44:05 -07:00
parent 1807e6d8d9
commit 5996440eb3

View File

@ -71,7 +71,8 @@ handlers =
appEvent :: T.BrickEvent () e -> T.EventM () St ()
appEvent (T.VtyEvent (V.EvKey k mods)) = do
-- Dispatch the key to the event handler to which the key is mapped,
-- if any.
-- if any. Also record in lastKeyHandled whether the dispatcher
-- found a matching handler.
kc <- use keyConfig
let d = K.keyDispatcher kc handlers
lastKey .= Just (k, mods)