servo/ports/libsimpleservo
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
..
src Auto merge of #21881 - pyfisch:keyboard-types, r=paulrouget 2018-10-17 05:36:08 -04:00
build.rs Remove unnecessary sysroot and platform configuration from build script. 2018-09-20 15:42:04 -04:00
Cargo.toml script: Optionally store backtraces when throwing DOM exceptions. 2018-10-01 16:04:56 +02:00
README.md new android port: introduce a simple servo library 2018-07-31 22:33:51 +08:00

This is a basic wrapper around Servo. While libservo itself (/components/servo/) offers a lot of flexibility, libsimpleservo (/ports/libsimpleservo/) tries to make it easier to embed Servo, without much configuration needed. It is limited to only one view (no tabs, no multiple rendering area).