mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Creates KeyModifiers value using empty() instead of from_bits()
This commit is contained in:
parent
26d2ee6355
commit
c7fd89a593
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue