Skip to content
New issue

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

Fix #535: Map key bind interferes with race editor help #573

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

MittellBuurman
Copy link
Contributor

Added onClientResourceStart and onClientResourceStop event handlers to listen on the root element.

When both the editor resource, and the race resource are active, it unbinds toggleMap from F2

When the editor resource is active, and you stop the race resource, it binds toggleMap back to F2.

Since the help menu in Race is only active when the editor is active, this should really be the only time it should either bind or unbind the toggleMap.

Added onClientResourceStart and onClientResourceStop event handlers to
listen on the root element.

When both the editor resource, and the race resource are active, it
unbinds toggleMap from F2

When the editor resource is active, and you stop the race resource, it
binds toggleMap back to F2.

Since the help menu in Race is only active when the editor is active,
this should really be the only time it should either bind or unbind the
toggleMap.
@jlillis jlillis merged commit e62bc54 into multitheftauto:master Nov 12, 2024
1 check passed
@MittellBuurman MittellBuurman deleted the bugfix-535 branch November 12, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants