commit | 2a137720e54938bbf6c8ac35a03ba3c528cfa665 | [log] [tgz] |
---|---|---|
author | Pranav Modi <pranavmodi@microsoft.com> | Wed Apr 16 16:42:15 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 16 16:42:15 2025 |
tree | 8c93889752729a4b049a4bcd1036b320286e2be3 | |
parent | 9cf9befa7d98c4cf2d6363024e24e680c234318f [diff] |
[Editing] Prevent adding newline character after space key press The issue involved the textarea where pressing the space key before any character in multi-line wrapped content caused unwanted newline characters. This bug was introduced by the change list [1]. A line break was automatically added so that spaces appeared at the caret. This logic has now been removed. Typing spaces at the start of a wrapped line was confusing because the spaces ended up in the previous line. To address this, the caret's affinity has been changed from downstream to upstream whenever possible. This adjustment ensures the caret is positioned correctly and spaces inserted are properly visible. There is an issue [2] filed on w3c for the expected specification change. [1] - https://codereview.chromium.org/2618613004 [2] - https://github.com/w3c/editing/issues/482 Bug: 40677155 Change-Id: Ida00847e32ef9c2efdd7ddde38d798528947593f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6254377 Reviewed-by: Sambamurthy Bandaru <sambamurthy.bandaru@microsoft.com> Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Pranav Modi <pranavmodi@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1447804}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.