[input] Make unbindall less aggressive

As it is a legacy command, it should affect only the legacy bindings
(imt_drop_all is available for aggressively unbinding all keys).
This commit is contained in:
Bill Currie 2021-03-31 17:49:26 +09:00
parent 55d3193b5f
commit bc785ab2c2

View file

@ -748,15 +748,13 @@ Key_In_Unbind_f (void)
static void
Key_Unbindall_f (void)
{
keydest_t kd;
imt_t *imt;
int i;
for (kd = key_unfocused; kd < key_last; kd++) {
for (imt = key_targets[kd].imts; imt; imt = imt->next) {
for (i = 0; i < QFK_LAST; i++) {
Key_SetBinding (imt, i, 0);
}
imt = Key_FindIMT ("imt_mod");
if (imt) {
for (i = 0; i < QFK_LAST; i++) {
Key_SetBinding (imt, i, 0);
}
}
}