mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
cargo: Upgrade keyboard-types
to 0.8.0
and xcomponent-sys
to 0.3.4
(#38375)
With some adjustment for `NamedKey`. The two crates need to be bumped together to avoid duplicate of `keyboard-types` action. --------- Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com>
This commit is contained in:
parent
a063b5e78a
commit
05ad9026f5
15 changed files with 471 additions and 432 deletions
|
@ -6,7 +6,7 @@ use std::cell::Cell;
|
|||
|
||||
use dom_struct::dom_struct;
|
||||
use js::rust::HandleObject;
|
||||
use keyboard_types::{Key, Modifiers};
|
||||
use keyboard_types::{Key, Modifiers, NamedKey};
|
||||
|
||||
use crate::dom::bindings::cell::DomRefCell;
|
||||
use crate::dom::bindings::codegen::Bindings::KeyboardEventBinding;
|
||||
|
@ -43,7 +43,7 @@ impl KeyboardEvent {
|
|||
KeyboardEvent {
|
||||
uievent: UIEvent::new_inherited(),
|
||||
key: DomRefCell::new(DOMString::new()),
|
||||
typed_key: DomRefCell::new(Key::Unidentified),
|
||||
typed_key: DomRefCell::new(Key::Named(NamedKey::Unidentified)),
|
||||
code: DomRefCell::new(DOMString::new()),
|
||||
location: Cell::new(0),
|
||||
modifiers: Cell::new(Modifiers::empty()),
|
||||
|
@ -180,7 +180,7 @@ impl KeyboardEventMethods<crate::DomTypeHolder> for KeyboardEvent {
|
|||
init.parent.parent.parent.cancelable,
|
||||
init.parent.parent.view.as_deref(),
|
||||
init.parent.parent.detail,
|
||||
Key::Unidentified,
|
||||
Key::Named(NamedKey::Unidentified),
|
||||
init.code.clone(),
|
||||
init.location,
|
||||
init.repeat,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue