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

EditMultiline doesn't work in GLFW_GL3. #82

Open
AllenDang opened this issue Sep 11, 2019 · 2 comments
Open

EditMultiline doesn't work in GLFW_GL3. #82

AllenDang opened this issue Sep 11, 2019 · 2 comments

Comments

@AllenDang
Copy link
Contributor

AllenDang commented Sep 11, 2019

OS: MacOS 10.14.6
GO: 1.13
Backend: GLFW3.2/GL3
Nuklear: 4.01.0

Minimal code sample is

name := nk.NewTextEdit()
nk.NkTexteditInitDefault(name)

nk.NkEditBuffer(ctx, nk.EditEditor, name, nk.NkFilterDefault)

I cannot enter any character in edit if the flag is nk.EditEditor.

If change the flag to nk.EditBox, infinite "Enter" key is triggered once the edit box is focused.

@xlab
Copy link
Member

xlab commented Sep 11, 2019

Hm, did that happen before? With previous version.

@AllenDang
Copy link
Contributor Author

@xlab
Yes, previous version also has problem with the NkEditBuffer, but that is different, I cannot enter anything into the editor control with any kind of flag.

var text nk.TextEdit
nk.NkTexteditInitDefault(&text)
// Here I tried EditField, EditBox, non of them work
nk.NkEditBuffer(ctx, nk.EditEditor, &text, nk.NkFilterDefault)

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

No branches or pull requests

2 participants