Skip to content

Commit

Permalink
chore: call msg_send super
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Tsai committed Aug 26, 2024
1 parent 47140fa commit 880e798
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/wkwebview/class/wry_web_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare_class!(
#[method(performKeyEquivalent:)]
fn perform_key_equivalent(
&self,
_event: &NSEvent,
event: &NSEvent,
) -> Bool {
// This is a temporary workaround for https://github.com/tauri-apps/tauri/issues/9426
// FIXME: When the webview is a child webview, performKeyEquivalent always return YES
Expand All @@ -57,12 +57,7 @@ declare_class!(
Bool::NO
} else {
unsafe {
let result: Bool = self.send_super_message(
WKWebView::class(),
objc2::sel!(performKeyEquivalent:),
(_event,),
);
result
objc2::msg_send![super(self), performKeyEquivalent: event]
}
}
}
Expand Down

0 comments on commit 880e798

Please sign in to comment.