servo/components
bors-servo f3b1f0d308
Auto merge of #24624 - garasubo:fix-keypress-trigger, r=paulrouget
Fix keypress trigger condition

Fix #22346

keypress event should be triggered for keys representing character
values. So, we should trigger this event for enter key.
This event should not trigger for IME inputs.

TODO:
- It seems we don't handle composition events correctly. To implement this keypress condition correctly, we should fix that first. In my current implementation, onkeypress event will be trigger when the user press Enter key to send inputs in IME (onCompotionEnd).
- I don't update any tests, and I couldn't find any tests related to this change in WPT. It might be better to add some tests for it, but I don't know what is the appropriate way.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-11-14 06:51:33 -05:00
..
allocator
atoms Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
background_hang_monitor Use surfman for managing GL surfaces 2019-11-01 08:47:11 -05:00
bluetooth Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
bluetooth_traits
canvas Auto merge of #24676 - Manishearth:unpatch, r=jdm 2019-11-11 19:25:22 -05:00
canvas_traits Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensions 2019-11-10 18:37:14 -05:00
compositing Properly set event.buttons value on mousemove 2019-11-11 16:00:44 +01:00
config Allow setting Visual Studio logger level from cli arg 2019-10-28 17:29:20 +01:00
config_plugins
constellation Properly set event.buttons value on mousemove 2019-11-11 16:00:44 +01:00
debugger
deny_public_fields
derive_common derive_common: Fix example in documentation 2019-11-07 18:52:30 -06:00
devtools Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
devtools_traits
dom_struct
domobject_derive
embedder_traits
fallible
geometry Fix some warnings new in Rust Nightly 2019-11-08 11:45:16 +01:00
gfx Use xml-rs instead of rcdom for Android font list parsing 2019-10-23 15:34:48 +02:00
gfx_traits
hashglobe Fix some warnings new in Rust Nightly 2019-11-08 11:45:16 +01:00
jstraceable_derive
layout dom: Calculate the viewport size of iframes when they are first added to the tree. 2019-11-06 16:13:55 -05:00
layout_2020 dom: Calculate the viewport size of iframes when they are first added to the tree. 2019-11-06 16:13:55 -05:00
layout_thread Ensure layout/script always have a correct viewport size when a new pipeline is created. 2019-11-06 16:13:55 -05:00
layout_thread_2020 Ensure layout/script always have a correct viewport size when a new pipeline is created. 2019-11-06 16:13:55 -05:00
layout_traits Ensure layout/script always have a correct viewport size when a new pipeline is created. 2019-11-06 16:13:55 -05:00
malloc_size_of Fix Gecko build. 2019-11-04 13:43:20 +01:00
media
metrics
msg continue messageport, transferable, postmessage options 2019-10-19 14:28:18 +08:00
net Use HSTS preload list for private HttpState, too. 2019-11-10 20:16:53 +01:00
net_traits Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
pixels Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensions 2019-11-10 18:37:14 -05:00
profile begin messageport, transferable objects, impl 2019-10-19 14:12:22 +08:00
profile_traits begin messageport, transferable objects, impl 2019-10-19 14:12:22 +08:00
rand Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
range
remutex
script Auto merge of #24624 - garasubo:fix-keypress-trigger, r=paulrouget 2019-11-14 06:51:33 -05:00
script_layout_interface Fix some warnings new in Rust Nightly 2019-11-08 11:45:16 +01:00
script_plugins Upgrade to rustc 1.40.0-nightly (246be7e1a 2019-10-25) 2019-10-26 13:03:49 +02:00
script_traits Implement srcdoc support for iframes. 2019-11-12 13:57:54 -05:00
selectors style: Remove some XBL code in the style system. 2019-11-04 13:36:32 +01:00
servo Update surfman to use Git version 2019-11-11 12:29:05 -08:00
servo_arc
size_of_test
std_test_override
style Fix some warnings new in Rust Nightly 2019-11-08 11:45:16 +01:00
style_derive
style_traits style: Use serde to serialize LengthPercentage and StyleRayFunction. 2019-11-04 13:36:32 +01:00
to_shmem Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
to_shmem_derive
url Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
webdriver_server Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
webrender_traits
webvr
webvr_traits