mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
A key press now looks up its binding the way 4.3.4's GetReducedKeyBinding does: every subset of the modifiers in its fixed order (ALT-SHIFT-Q tries ALT-SHIFT-Q, SHIFT-Q, ALT-Q, Q), an override before the saved binding for each. 1.12 tried only the pressed key and the key minus its first modifier. A binding to a command that does not exist is skipped, as 4.3.4's GetKeyBinding does; the command-table lookup mirrors the walk the engine inlines in FUN_BINDING_COMMAND_EXECUTE. GetBindingByKey(key) returns the command a press of the key runs.