diff options
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index 0f7164d5fa0..c647f63d4d8 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -78,12 +78,12 @@ pub enum Direction { /// Was the keyboard event accompanied by the standard control modifier, /// i.e. cmd on Mac OS or ctrl on other platforms. -#[cfg(target_os="macos")] +#[cfg(target_os = "macos")] fn is_control_key(mods: KeyModifiers) -> bool { mods.contains(SUPER) && !mods.contains(CONTROL | ALT) } -#[cfg(not(target_os="macos"))] +#[cfg(not(target_os = "macos"))] fn is_control_key(mods: KeyModifiers) -> bool { mods.contains(CONTROL) && !mods.contains(SUPER | ALT) } |