-
-
Notifications
You must be signed in to change notification settings - Fork 490
Description
Describe the bug
Key bindings on the client end can get messed up when different resources use the same key, for example, if resource (A) on server (1) has command handler but no key is bound, and a client binds key '1' to 'bug' command, and then resource (B) on server (2) also uses '1' for 'bug', unbinding '1' for 'bug' on server (2) with unbindKey("1", "down", "bug") will totally remove the client's key binding, even after they've left server
this means they can't bind '1' to 'bug' or use the same bind key for a different resource, but resources still can bind a key, to fix this they need to restart the game to bind the key again
it should display as resource key bind, like this one in the image
but if the client already bound a key with the same command, the key will be added as an alt key
Steps to reproduce
- start runcode
- crun addCommandHandler("bug", function() outputChatBox("hi") end)
- type /bind 1 bug
- crun bindKey("1","down","bug")
- crun unbindKey("1","down","bug")
- use the same bind key with different server
Version
No response
Additional context
No response
Relevant log output
Security Policy
- I have read and understood the Security Policy and this issue is not security related.