servo/components/constellation
bors-servo 9a0404ac5f
Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget
Use keyboard-types crate

Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent
from the W3C UI Events spec. All keyboard handling now uses the new types.

Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now
recognized in a uniform way.

Updated the winit port.
Updated webdriver integration.

part of #20331

What this PR does:

* allow the use non-ASCII keyboards for text input
* decouple keyboard event "key" from "code" (key meaning vs location)

What this PR does not do:

* completely improve keyboard events send from winit and webdriver
* add support for CompositionEvent or IME

Notes:

* The winit embedder does not send keyup events for printable keys (this is a regression)
* keyboard-types is on crates.io because I believe it to be useful outside of servo. If you prefer I can add a copy in this repo.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21881)
<!-- Reviewable:end -->
2018-10-17 05:36:08 -04:00
..
browsingcontext.rs Move Pipeline::{parent_info,visible,is_private} to BrowsingContext 2018-09-12 17:04:18 +02:00
Cargo.toml Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
constellation.rs Use keyboard-types crate 2018-10-07 22:39:00 +02:00
event_loop.rs Rustfmt the constellation 2018-07-21 15:03:23 -06:00
lib.rs Use keyboard-types crate 2018-10-07 22:39:00 +02:00
network_listener.rs Thread the status through navigation redirects 2018-10-13 00:14:56 +00:00
pipeline.rs Provide webrender_api::RenderApiSender to ScriptThread and DOM Window 2018-10-08 16:11:59 +02:00
sandboxing.rs Rustfmt the constellation 2018-07-21 15:03:23 -06:00
session_history.rs Move Pipeline::{parent_info,visible,is_private} to BrowsingContext 2018-09-12 17:04:18 +02:00
timer_scheduler.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00