mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-09 22:16:01 +03:00
newKeyConfig: use a more natural argument ordering
This commit is contained in:
parent
5f35cd0e3e
commit
57679a8f71
@ -91,17 +91,17 @@ data KeyConfig e =
|
||||
|
||||
newKeyConfig :: (Ord e)
|
||||
=> KeyEvents e
|
||||
-- ^ The base mapping of key events to use
|
||||
-- ^ The base mapping of key events and names to use.
|
||||
-> [(e, [Binding])]
|
||||
-- ^ Default bindings by key event, such as from a
|
||||
-- configuration file or embedded code
|
||||
-> [(e, BindingState)]
|
||||
-- ^ Custom bindings by key event, such as from a
|
||||
-- configuration file. Explicitly setting an event to
|
||||
-- 'Unbound' here has the effect of disabling its default
|
||||
-- bindings.
|
||||
-> [(e, [Binding])]
|
||||
-- ^ Default bindings by key event, such as from a
|
||||
-- configuration file or embedded code
|
||||
-> KeyConfig e
|
||||
newKeyConfig evs bindings defaults =
|
||||
newKeyConfig evs defaults bindings =
|
||||
KeyConfig { keyConfigBindingMap = M.fromList bindings
|
||||
, keyConfigEvents = evs
|
||||
, keyConfigDefaultBindings = M.fromList defaults
|
||||
|
Loading…
Reference in New Issue
Block a user