benilla-re systems structs docs

ExecuteBinding

function · ui · primitive

Address
0x4b7990 · 444 bytes, up to 0x4b7b4b
Signature
bool __thiscall (CBindings *this, const char *chord, bool isDown)
Meaning
Finds the command of a chord with one modifier fallback and runs it
Confidence
verified, proof one
Finding
ui/keybindings#dispatch

Finding: Dispatch in ui: key bindings

0x4b7990(chord, isDown) finds the command for a chord. It returns 0 for an empty chord. It probes the live set (set 3) for the exact chord, ignoring case. On a miss it cuts the chord after its first - and probes the rest once. So SHIFT-W falls back to W; ALT-CTRL-Z falls back to CTRL-Z, never to ALT-Z or Z; - alone probes the empty string. There is no third probe. A hit copies the action name, runs 0x4b7b50 with isDown and returns its answer: 1 when a script ran, 0 otherwise. It runs with the context word cleared and the manager's flag at +0xd8 set, which makes protected functions legal, and restores both afterwards.

The derivation is in the doc.

Callers 5

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.