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

focus/defocus user callbacks #1272

Open
tehn opened this issue Dec 17, 2020 · 2 comments
Open

focus/defocus user callbacks #1272

tehn opened this issue Dec 17, 2020 · 2 comments
Labels

Comments

@tehn
Copy link
Member

@tehn tehn commented Dec 17, 2020

some scripts might want to know when you enter/leave the menu

proposed user callback names:

  • focus
  • defocus

question: should these be called when a user script calls the fileselect or textentry?

alternatively:

  • focus(state) could just have the to-be-entered state as an arg ("menu", "script", "fileselect", etc)
@tehn tehn added feature menu labels Dec 17, 2020
@tyleretters
Copy link
Contributor

@tyleretters tyleretters commented Dec 17, 2020

i like the alternative focus(state) with perhaps the addition of boolean check? is_focus(state)

@tyleretters
Copy link
Contributor

@tyleretters tyleretters commented Dec 17, 2020

(and fileselect and textentry could be refactored to call focus(thing))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants