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

can't delete text or move cursor on macOS #40

Closed
tinaun opened this issue Aug 5, 2022 · 4 comments
Closed

can't delete text or move cursor on macOS #40

tinaun opened this issue Aug 5, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@tinaun
Copy link

tinaun commented Aug 5, 2022

image

@LPGhatguy LPGhatguy added the bug Something isn't working label Aug 5, 2022
@LPGhatguy
Copy link
Member

Thanks for the bug report! I don't have easy access to a macOS machine to test this out.

I wonder what this could be. We listen for arrow keys, backspace, and delete to manipulate the textbox.

@tinaun
Copy link
Author

tinaun commented Sep 11, 2022

I believe DeviceEvent::Key isn't implemented on Macs - no events of that type are ever emitted by winit in my tests. changing DeviceEvent::Key to WindowEvent::KeyboardInput in YakuiWinit::handle_event makes text boxes handle as expected.

see also: rust-windowing/winit#1470

@LPGhatguy
Copy link
Member

Cool, thank you for looking into this.

I just pushed a commit to use WindowEvent::KeyboardInput instead of DeviceEvent::Key.

@tinaun
Copy link
Author

tinaun commented Sep 12, 2022

works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants