Comments (3)
I'm open to adding selection direction if it serves a purpose for the text input services that the EditContext integrates with.
As far as I know, however, selection direction determines which end of the selection is the focus and which is the anchor; and the usefulness of knowing which end is the focus comes when the browser responds to user input (e.g. shift+click or shift+arrow). Since the selection properties of textareas and inputs affect the browser's selection, and authors want control over which end of the selection moves when user input is received, those elements also require a selection direction.
In contrast, the EditContext does not change the browser's selection, it only changes the data reported to OS text input services. I don't see in iOS or Android APIs a place where selection direction could be provided. It's possible it could be implied when the end is less than the start, but on Windows I know that's an error and will fail fast (crash the caller).
I suspect that like Windows, the selection is generally provided on all platforms to produce suggestions, and for that the selection direction seems unnecessary. Looping in some others in case they can say definitively whether Android and Mac text input APIs can accept an end less than the start offset for selection and if so whether than impacts the experience.
@whsieh any chance you know the answer to the question about whether the Mac / iOS text input APIs can accept or will benefit from knowing whether selection is reversed?
@mustaqahmed any chance you know the same for Android and Chrome OS?
from msedgeexplainers.
Given that EditContext is about input data and nothing else, I would propose we do not include selection direction. If @domenic you agree with the reasoning, I would like to close the issue.
from msedgeexplainers.
Assuming @domenic agrees. Closing.
from msedgeexplainers.
Related Issues (20)
- ㄦㄦㄦ。
- [Web Install] Options for declaring `install_source`s
- [Web Install] Is `install()` or `getInstalledApps()` allowed from subframes? HOT 1
- [Developer Needs Dashboard] "top developer needs" are all in-progress ideas HOT 2
- [Developer Needs Dashboard] Web Component Updates HOT 1
- [Web Install] What is the behavior of install() for already-installed apps HOT 2
- [Web Install] How do related applications impact these APIs? HOT 3
- [Developer Needs Dashboard] Powerful Web apps features HOT 6
- [URL Protocol Handler Registration] <Issue with AutoDownload when passing through the values of a video from a localhost> HOT 1
- [Developer Needs Dashboard] JPEG XL HOT 1
- [Acquisition Info] Feedback
- [Web Install] Using manifest_id as an install_url for cross-origin install will cause errors & flakiness, and encourage poor practices HOT 2
- [Web Install] Separating naming of same-document and cross-document install
- Add note to writingsuggestions that's it's been merged into HTML HOT 2
- [Web Install] Similarities between `getInstalledApps()` and `getInstalledRelatedApps()` HOT 4
- 使用刷新令牌刷新使用者存取令牌
- [Perf Timing during launch] <TITLE HERE>
- [Developer Needs Dashboard] Incorrect Firefox logo HOT 8
- [LocalFolder Access] Feedbackcontent://media/external/downloads/1000016659
- [Web Install] Alternative: Install URL Protocol
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msedgeexplainers.