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

feat: added debugKey #59

Merged
merged 2 commits into from
May 26, 2024
Merged

feat: added debugKey #59

merged 2 commits into from
May 26, 2024

Conversation

amyspark-ng
Copy link
Contributor

@amyspark-ng amyspark-ng commented May 26, 2024

Added a property for kaboomOpt where you can set the key that toggles the debug mode, couldn't find where the defaults in kaboomOpt were defined so i just checked in the line that does the key checking
app.onKeyPress(!gopt.debugKey ? "f1" : gopt.debugKey, () => debug.inspect = !debug.inspect);

closes: #46

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can simplify with gopt.debugKey ?? "f1"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to learn more syntax

@lajbel lajbel merged commit 85ed508 into kaplayjs:master May 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: key to change debug
2 participants