CustomKeybindingDemo: add a working example INI file to load

This commit is contained in:
Jonathan Daugherty 2022-08-04 19:10:31 -07:00
parent d10e6cd374
commit ad91a0b727
3 changed files with 7 additions and 1 deletions

View File

@ -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,

View File

@ -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
View File

@ -0,0 +1,4 @@
[keybindings]
quit = x
increment = i
decrement = d