Re: [w3c/selection-api] `Selection.direction`'s behavior should be based on the node's position (Issue #334)

> 
> The `Shift` + `ArrowLeft` should extend the focus boundary-point, but since we can't determine that anymore due to the inconsistent behavior of the `direction`, we don't know that which boundary-point should be extended.
> 
> So, from that point, if I press `Shift` + `ArrowLeft` and update the bounday-point via script, that can be any of the following results:
> 
> ```
> <div cE=true>Lorem| ipsum| dolor</div>
> // or
> <div cE=true>Lorem |ipsu|m dolor</div>
> ```

The correct behavior on macOS is to always expand the selection. i.e. if Shift + ArrowLeft is pressed, then the selection should extend to the left, and if Shift + ArrowRight is pressed, then the selection should extend to the right.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/334#issuecomment-2293802223
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/334/2293802223@github.com>

Received on Friday, 16 August 2024 16:26:31 UTC