add alias and keybinding for toggling the keyboard cursor

develop
Myk Taylor 2023-04-15 22:26:38 -07:00
parent af1d886a27
commit 67f50eafb0
No known key found for this signature in database
3 changed files with 5 additions and 0 deletions

@ -49,6 +49,9 @@ keybinding add Ctrl-H@dwarfmode autodump-destroy-here
# apply blueprints to the map
keybinding add Ctrl-Shift-Q@dwarfmode gui/quickfort
# toggle keyboard cursor
keybinding add Alt-K@dwarfmode toggle-kbd-cursor
# show information collected by dwarfmonitor
#keybinding add Alt-M@dwarfmode/Default "dwarfmonitor prefs"
#keybinding add Ctrl-F@dwarfmode/Default "dwarfmonitor stats"

@ -144,3 +144,4 @@ enable \
alias add autounsuspend suspendmanager
alias add gui/dig gui/design
alias add toggle-kbd-cursor lua "local flags4 = df.global.d_init.flags4 if flags4.KEYBOARD_CURSOR then flags4.KEYBOARD_CURSOR = false else local guidm = require('gui.dwarfmode') guidm.setCursorPos(guidm.Viewport.get():getCenter()) flags4.KEYBOARD_CURSOR = true end"

@ -38,6 +38,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Fixes
## Misc Improvements
- ``toggle-kbd-cursor``: add hotkey for toggling the keyboard cursor (Alt-K)
## Documentation