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

Support keypad-enter for text edit #522

Closed
wants to merge 1 commit into from
Closed

Support keypad-enter for text edit #522

wants to merge 1 commit into from

Conversation

yasushima-gd
Copy link

keypad-enter will be enabled by this change.

In GLFW3, keypad-enter is GLFW_KEY_KP_ENTER.
But in the others environments, whether they are correct did not know.

@ocornut
Copy link
Owner

ocornut commented Feb 8, 2016

Thank you. I will look into it in the future.
In the meanwhile you can also assign io.KeyDown[ io.KeyMap[ImGuiKey_Enter] ] to be true when either of your key is true, in your implementation wrapper.

@ocornut
Copy link
Owner

ocornut commented Mar 25, 2016

@yasushima-gd I am dropping this PR.
As stated above it is easier if in your application to set io.KeyDown[io.KeyMap[ImGuiKey_Enter]] to be true when either key is true.

Keypad enum entries will probably be added eventually (particularly in relation to the Shortcut API requirements #456) but right now this isn't needed to achieve what you need, and I'll rather add all new enums together when we decide that will be needed.

@ocornut ocornut closed this Mar 25, 2016
ekmett added a commit to ekmett/vr that referenced this pull request Aug 28, 2016
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.

2 participants