mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix interfaces test
This commit is contained in:
parent
89a27dd11a
commit
642a3592c7
7 changed files with 169 additions and 138 deletions
|
@ -438,7 +438,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLInputElement> {
|
|||
let doc = document_from_node(*self).root();
|
||||
doc.request_focus(ElementCast::from_ref(*self));
|
||||
} else if "keydown" == event.Type().as_slice() && !event.DefaultPrevented() &&
|
||||
(self.input_type.get() == InputText|| self.input_type.get() == InputPassword) {
|
||||
(self.input_type.get() == InputText || self.input_type.get() == InputPassword) {
|
||||
let keyevent: Option<JSRef<KeyboardEvent>> = KeyboardEventCast::to_ref(event);
|
||||
keyevent.map(|event| {
|
||||
match self.textinput.borrow_mut().handle_keydown(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue