We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug unbindKey removes more binds than you asked it to, see example.
To Reproduce
function f1() outputChatBox("f1") end bindKey("1", "down", f1) function f2() outputChatBox("f2") end bindKey("1", "down", f2) function f3() outputChatBox("f3 (f1 should stop appearing now, press 2 again, f2 will then stop working)") unbindKey("1", "down", f1) end bindKey("2", "down", f3)
This can be used to reproduce the bug. Note that if you change bindKey("1", "down", f2) to bindKey("1", "up", f2) then the bug won't happen.
bindKey("1", "down", f2)
bindKey("1", "up", f2)
Expected behavior Only the specified bind should occur.
MTA Client: 1.5.5
MTA Server 1.5.5
Additional context From https://bugs.mtasa.com/view.php?id=9557
The text was updated successfully, but these errors were encountered:
This is made worse by the fact that 1 script can break another script, as unbindKey in 1 script will unbind the key in the other script.
Sorry, something went wrong.
Just in case, this still occurs. It broke one of my scripts on a weird way.
In my case it happend with "both", didn't use "down"
No branches or pull requests
Describe the bug
unbindKey removes more binds than you asked it to, see example.
To Reproduce
This can be used to reproduce the bug. Note that if you change
bindKey("1", "down", f2)
tobindKey("1", "up", f2)
then the bug won't happen.Expected behavior
Only the specified bind should occur.
MTA Client: 1.5.5
MTA Server 1.5.5
Additional context
From https://bugs.mtasa.com/view.php?id=9557
The text was updated successfully, but these errors were encountered: