diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-22 16:03:16 -0700 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2021-11-22 16:03:16 -0700 |
| commit | 6b91a961e2951f40359af1fe2f1702970edac879 (patch) | |
| tree | b01387e15a49de4081e8dd4acf900841469e87e6 /src/Internal/LayoutDraw.hs | |
| parent | 4661b9e7c78e556adc3cf998b65808a4d7886746 (diff) | |
| download | rde-6b91a961e2951f40359af1fe2f1702970edac879.tar.gz rde-6b91a961e2951f40359af1fe2f1702970edac879.tar.bz2 rde-6b91a961e2951f40359af1fe2f1702970edac879.zip | |
Compeletely change how KeyBindings are done.
Created new KeysM and ButtonsM monads to make configuring
keybindings and button bindings more readable through a DSL.
Before bindings would just be a giant list, but that
made it difficult to read and repetitive.
Now the syntax follows the pattern
bind key-to-bind
mask1 : action
mask2 : action
i.e.
bind xK_a $ do
justMod $ doSomeAction a b c
shiftMod $ doSomeOtherAction a b c
This makes it a lot cleaner to see all the bindings allocated
to a specific key. That way, when adding a new binding,
I can easily see what bindings already exist for that key.
Diffstat (limited to 'src/Internal/LayoutDraw.hs')
0 files changed, 0 insertions, 0 deletions