Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a719f0

Browse files
committed
update docs
1 parent f987bca commit 5a719f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/builtins/keybinding.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ The ``<key>`` parameter above has the following **case-sensitive** syntax::
3333
where the ``KEY`` part can be any recognized key and :kbd:`[`:kbd:`]` denote
3434
optional parts.
3535

36+
DFHack commands can advertise the contexts in which they can be usefully run.
37+
For example, a command that acts on a selected unit can tell `keybinding` that
38+
it is not "applicable" in the current context if a unit is not actively
39+
selected.
40+
3641
When multiple commands are bound to the same key combination, DFHack selects
3742
the first applicable one. Later ``add`` commands, and earlier entries within one
3843
``add`` command have priority. Commands that are not specifically intended for

0 commit comments

Comments
 (0)