Fix incorrect target_os value. (#32984)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-08-09 00:54:32 -04:00 committed by GitHub
parent 24b1404d12
commit 4eae4e29fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,7 +454,7 @@ where
.otherwise(|| self.platform_handle_key(key_event));
}
#[cfg(not(target_os = "win"))]
#[cfg(not(target_os = "windows"))]
fn platform_handle_key(&mut self, key_event: KeyboardEvent) {
if let Some(id) = self.focused_webview_id {
if let Some(event) = ShortcutMatcher::from_event(key_event.clone())
@ -471,7 +471,7 @@ where
}
}
#[cfg(target_os = "win")]
#[cfg(target_os = "windows")]
fn platform_handle_key(&mut self, _key_event: KeyboardEvent) {}
/// Handle key events after they have been handled by Servo.