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

How to handle Return in entry? #1

Open
notramo opened this issue May 16, 2020 · 3 comments
Open

How to handle Return in entry? #1

notramo opened this issue May 16, 2020 · 3 comments

Comments

@notramo
Copy link

notramo commented May 16, 2020

Is there a callback, or signal for Entry, PasswordEntry, and SearchEntry if the user hits Enter?

@watzon
Copy link
Owner

watzon commented May 18, 2020

I'm not sure that's possible yet with LibUI, but if it is it would involve using Entry#set_on_changed. Maybe the Enter key will register with that event.

@frnco
Copy link

frnco commented Aug 5, 2020

rust-native-ui/libui-rs#71

LibUI Doesn't have it.

Still, there being some way to get KeyPresses and which element has focus pretty would much solve this. Do you have any ideas on how to get intercept key presses and get the element with Focus, @watzon ?

By the way, amazing library. It actually works better than pretty much anything I've ever tried (Ok, https://developer.fyne.io/index.html puts up a fight, still Fyne has some weird bugs which is a minus, so if CRU doesn't win, it's at least a draw.)

@watzon
Copy link
Owner

watzon commented Aug 5, 2020

Do you have any ideas on how to get intercept key presses and get the element with Focus, @watzon ?

I really don't unfortunately

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

3 participants