Add "mode" field in binding event

This does *not* go in the binding object to reflect the same hierarchy
of the config file: a mode is a collection of bindings.

Fixes #5323
This commit is contained in:
Orestis Floros
2022-12-14 13:19:00 +01:00
parent 1786b13f0d
commit d5c8319b6c
6 changed files with 41 additions and 4 deletions

View File

@ -1099,6 +1099,8 @@ binding that ran a command because of user input. The +change (string)+ field
indicates what sort of binding event was triggered (right now it will always be
+"run"+ but may be expanded in the future).
The +mode (string)+ field contains the name of the mode the binding was run in.
The +binding (object)+ field contains details about the binding that was run:
command (string)::