Implement document focus context and hook it up to click events.

This commit is contained in:
Josh Matthews 2014-10-04 10:31:47 -04:00
parent 329ba56fca
commit 84bc17e7ad
4 changed files with 57 additions and 7 deletions

View file

@ -415,6 +415,9 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLInputElement> {
}
_ => {}
}
let doc = document_from_node(*self).root();
doc.request_focus(ElementCast::from_ref(*self));
}
}
}