SetKeyBinding
function · ui · primitive
- Address
0x4b7490· 1020 bytes, up to0x4b788b- Signature
bool __thiscall (CBindings *this, int set, const char *key, const char *action)- Meaning
- Normalizes a key's alias, validates it, then binds or unbinds it in a set
- Confidence
- verified, proof one
- Finding
- ui/keybindings#setting-a-binding
Finding: Setting a binding in ui: key bindings
SetBinding(key[, command]) raises unless argument 1 is a string or number. It calls 0x4b7490(3, key, command)
on the live set, a missing or non-string command meaning unbind, and returns the number 1 and signals
UPDATE_BINDINGS (386) on success, nil and no event on a refusal. The engine first replaces the whole-string
aliases LEFTBRACKET, RIGHTBRACKET, SLASH, BACKSLASH, SEMICOLON, APOSTROPHE, COMMA, PERIOD,
TILDE, PLUS and MINUS (compared without case) by [, ], /, \, ;, ', ,, ., a backquote, =
and -. Then 0x4b7890 is the only thing that can refuse. The command name is never checked.
The derivation is in the doc.
Callers 3
- 0x4b60b0 ui
- ParseBindingSet ui
- Script::SetBinding ui
Callees 13
- CheckActivePlayer ui
- IsValidBindingKey ui
- 0x4b7e50 ui
- LowerKeyIndices ui
- SetLinkOffset4b9100 ui
- Relink4b9360 ui
- GrowOnLongChain4b98b0 ui
- ResizeBuckets4b9c70 ui
- SMemFree storm
- SStrCmp storm
- SStrCmpI storm
- SStrDupA storm
- SStrHashHT storm
Calls and jumps by a bare address, from tables/calls.tsv.