mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Untry
This commit is contained in:
parent
7af5a7fd54
commit
316cd35767
34 changed files with 261 additions and 264 deletions
|
@ -172,8 +172,7 @@ pub fn keycodes_to_keys(key_codes: &[char]) -> Result<Vec<(Key, KeyModifiers, Ke
|
|||
let mut rv = vec![];
|
||||
|
||||
for char_code in key_codes.iter() {
|
||||
let (key, with_shift) = try!(
|
||||
key_from_char(char_code).ok_or(format!("Unsupported character code {}", char_code)));
|
||||
let (key, with_shift) = key_from_char(char_code).ok_or(format!("Unsupported character code {}", char_code))?;
|
||||
let modifiers = if with_shift {
|
||||
SHIFT
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue