of course I should have known that it would only work in tests *before*
committing, and would instantly break afterwards. Causes endless loops. Re-uglify. Sorry for the noise. :-/
This commit is contained in:
parent
f93bb8eedc
commit
a56e35ef74
1 changed files with 6 additions and 0 deletions
|
@ -265,13 +265,19 @@ FGInput::doKey (int k, int modifiers, int x, int y)
|
|||
b.last_state = 0;
|
||||
} else {
|
||||
if (k >= 1 && k <= 26) {
|
||||
if (_key_bindings[k + '@'].last_state)
|
||||
doKey(k + '@', KEYMOD_RELEASED, x, y);
|
||||
if (_key_bindings[k + '`'].last_state)
|
||||
doKey(k + '`', KEYMOD_RELEASED, x, y);
|
||||
} else if (k >= 'A' && k <= 'Z') {
|
||||
if (_key_bindings[k - '@'].last_state)
|
||||
doKey(k - '@', KEYMOD_RELEASED, x, y);
|
||||
if (_key_bindings[tolower(k)].last_state)
|
||||
doKey(tolower(k), KEYMOD_RELEASED, x, y);
|
||||
} else if (k >= 'a' && k <= 'z') {
|
||||
if (_key_bindings[k - '`'].last_state)
|
||||
doKey(k - '`', KEYMOD_RELEASED, x, y);
|
||||
if (_key_bindings[toupper(k)].last_state)
|
||||
doKey(toupper(k), KEYMOD_RELEASED, x, y);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue