-
-
Notifications
You must be signed in to change notification settings - Fork 980
Desktop: Mac fix keyboard input #3371
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
base: master
Are you sure you want to change the base?
Conversation
|
Sending key event twice to cef on key press is already not that correct, isn't it? My webview wrapper just sent one event per press and it works fine on mac/windows. cefclient only does this whille handling ime related things https://github.com/chromiumembedded/cef/blob/7087113239f0ef0f929a9404b2807aa65d95b79e/tests/cefclient/browser/text_input_client_osr_mac.mm#L294. |
|
I will take a look at your implementation. Maybe I'm filling some fields differently (incorrect)? But I'm pretty sure that there is a platform difference in some way. Especially with the option key on Mac. |
Co-authored-by: csmoe <csmoe@msn.com>
|
Hey @csmoe just finished reimplementing Keyboard input using your webview impl as a guide. I gave you Co-author on that commit. I realized afterward that your code doesn't specify a license. If you'd prefer that the portions I was able to draw from not be merged into Graphite, I'll absolutely respect that. It's probably fair use, but I still want to check with you first. |
|
@csmoe Your implementation is mostly correct for Mac but doesn't work for win and linux. |
This reverts commit c7cde9c.
c1b7907 to
0d104b4
Compare
|
Thanks, I'll check my implementation. By the way, how can I run the desktop app locally? I tried days ago, but failed. |
Command would be could you also answer my license/attribution question? |
|
Feel free to use the code, I'm quite flattered. |
|
This isn't a regression in this PR, but the issue i mentioned in #3374, that on mac (with a german keyboard) the zoom in shortcut is cmd * still exists. It is correct in the way that the shown key and the key it reacts to are the same, but at some point this should probably be changed to + (while reacting to = physical code). |
|
Also leaving this here for more context. adding this in desktop wrapper fixes the not working CMD+'+' issue Key::FakeKeyPlus => key = Some(KeyCode::Equal),supporting custom display char requires one of three things
|
and some other changes see commit messages
the texture import fix is only for mac.
they changed something about that while copying that code from us.
see tauri-apps/cef-rs#272 for details.
Closes #3336
tested on: