mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix incorrect target_os value. (#32984)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
24b1404d12
commit
4eae4e29fa
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue