Skip to content

Commit

Permalink
Creates KeyModifiers value using empty() instead of from_bits()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilshagri committed Jun 30, 2016
1 parent 26d2ee6 commit c7fd89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/glutin/window.rs
Expand Up @@ -576,7 +576,7 @@ impl Window {
}

fn glutin_mods_to_script_mods(modifiers: KeyModifiers) -> constellation_msg::KeyModifiers {
let mut result = constellation_msg::KeyModifiers::from_bits(0).expect("infallible");
let mut result = constellation_msg::KeyModifiers::empty();
if modifiers.intersects(LEFT_SHIFT | RIGHT_SHIFT) {
result.insert(SHIFT);
}
Expand Down

0 comments on commit c7fd89a

Please sign in to comment.