servo/tests/unit
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
..
deny_public_fields Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
malloc_size_of Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
metrics Update Webrender 2018-10-09 18:23:18 -04:00
profile Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
script Minor keyboard updates 2018-10-13 20:30:30 +02:00
script_plugins Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
style Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00