servo/components/script
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
..
docs
dom Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
task_source Add task source for media element 2018-10-10 22:15:37 +09:00
body.rs Format script component 2018-09-19 17:40:47 -04:00
build.rs Format script component 2018-09-19 17:40:47 -04:00
Cargo.toml Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
clipboard_provider.rs
CMakeLists.txt build(cmake): detect python binary for specified version 2018-03-13 09:25:06 -07:00
devtools.rs Format script component 2018-09-19 17:40:47 -04:00
document_loader.rs Format script component 2018-09-19 17:40:47 -04:00
fetch.rs Format script component 2018-09-19 17:40:47 -04:00
layout_image.rs Format script component 2018-09-19 17:40:47 -04:00
lib.rs Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
mem.rs Format script component 2018-09-19 17:40:47 -04:00
microtask.rs Format script component 2018-09-19 17:40:47 -04:00
network_listener.rs
script_runtime.rs Format script component 2018-09-19 17:40:47 -04:00
script_thread.rs Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
serviceworker_manager.rs Format script component 2018-09-19 17:40:47 -04:00
serviceworkerjob.rs Format script component 2018-09-19 17:40:47 -04:00
stylesheet_loader.rs Format script component 2018-09-19 17:40:47 -04:00
task.rs Format script component 2018-09-19 17:40:47 -04:00
task_queue.rs Format script component 2018-09-19 17:40:47 -04:00
test.rs Remove unused code for parsing a sizes attribute. 2018-07-01 10:53:42 +02:00
textinput.rs Use keyboard-types crate 2018-10-07 22:39:00 +02:00
timers.rs Format script component 2018-09-19 17:40:47 -04:00
unpremultiplytable.rs Format script component 2018-09-19 17:40:47 -04:00
webdriver_handlers.rs Format script component 2018-09-19 17:40:47 -04:00