-
Notifications
You must be signed in to change notification settings - Fork 8
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 not Display Input Method Editor in Window #8
Comments
Looking forward to hearing from you, Many thanks🙏. |
I'm afraid I don't understand you. Can you provide a screen recording and elaborate more on the problem? |
Excuse me, can this problem be solved? |
Apologies for my delayed response. I wasn't aware of this macOS feature. Could you kindly guide me on how to set it up? I'm eager to troubleshoot the issue. My hunch is that the Panel window level may be higher than that of the Input Method Editor. |
Thank you very much. I solved the problem of input method. |
You can add the implementation below here:
The implementation should roughly look like this: fn set_corner_radius(&self, radius: f64) {
let content_view: id = unsafe { msg_send![self, contentView] };
let _: () = unsafe { msg_send![content_view, wantsLayer] };
let layer: id = unsafe { msg_send![content_view, layer] };
let _: () = unsafe { msg_send![layer, setCornerRadius: radius] };
} the usage: panel.set_corner_radius(12.0); |
@zhouyangtingwen Will you close this issue? Please explain how to fix this issue so others can learn. |
@ahkohd Thank you very much🙏🙏. I will.👌 |
Before I finish this question, may I ask you one last question? |
Did you ever figure out how to accomplish that? I'm wondering how to listen for |
|
You should probably use the Tauri plugin I created., use it to listen to the let app_handle: tauri::AppHandle = ....
let delegate = panel_delegate!(MyPanelDelegate {
window_did_become_key,
window_did_resign_key
});
// Listen to when a delegate is called
delegate.set_listener(Box::new(move |delegate_name: String| {
println!("{} was called!", delegate_name);
// See, https://developer.apple.com/documentation/appkit/nswindowdelegate?language=objc
// for an exhaustive list of delegate events.
// emit an event to your window
if delegate_name == "window_did_resign" {
app_handle.get_window("some_window").emit("event_name", ());
}
})); |
@zhouyangtingwen can we close this issue? |
Sure |
Hello, thank you very much for your project, which has helped me a lot, but I have a question to ask you.
When I try to type in < INPUT >, my input method editor cannot be displayed on the window.
The text was updated successfully, but these errors were encountered: