mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-10-05 20:19:12 +03:00
CustomKeybindingDemo: add a working example INI file to load
This commit is contained in:
parent
d10e6cd374
commit
ad91a0b727
@ -45,6 +45,7 @@ extra-doc-files: README.md,
|
||||
docs/samtay-tutorial.md,
|
||||
docs/snake-demo.gif,
|
||||
CHANGELOG.md,
|
||||
programs/custom_keys.ini,
|
||||
docs/programs-screenshots.md,
|
||||
docs/programs-screenshots/brick-attr-demo.png,
|
||||
docs/programs-screenshots/brick-border-demo.png,
|
||||
|
@ -115,7 +115,8 @@ drawUi st = [body]
|
||||
txtWrap $ "No custom bindings loaded. " <>
|
||||
"Create an INI file with a " <>
|
||||
(Text.pack $ show sectionName) <>
|
||||
" section and pass its path to this " <>
|
||||
" section or use 'programs/custom_keys.ini'. " <>
|
||||
"Pass its path to this " <>
|
||||
"program on the command line."
|
||||
Just f -> str "Loaded custom bindings from:" <=> str (show f)
|
||||
body = C.center $
|
||||
|
4
programs/custom_keys.ini
Normal file
4
programs/custom_keys.ini
Normal file
@ -0,0 +1,4 @@
|
||||
[keybindings]
|
||||
quit = x
|
||||
increment = i
|
||||
decrement = d
|
Loading…
Reference in New Issue
Block a user