SD-1695 - add flag for text selection in viewing mode#1891
SD-1695 - add flag for text selection in viewing mode#1891caio-pizzol merged 16 commits intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3b19fc0cd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
caio-pizzol
left a comment
There was a problem hiding this comment.
nice one @mattConnHarbour!
wonder how we didn't catch this previously
ps. don't forget about allowing keyboard interactions as well
…on-only view mode (SD-1695) - Allow navigation keys (arrows, Home/End, PageUp/PageDown), Cmd+A, and Shift+Arrow in addition to Cmd+C for keyboard accessibility - Block composition events (compositionstart/update/end) to prevent IME input from mutating the document when view.editable is true due to allowSelectionInViewMode - Add unit tests for keyboard allowlist and composition blocking
…editable extension (SD-1695) - Fix missed allowSelectionInViewMode guard in RAF callback that was clearing selection on the next animation frame, defeating the feature - Extract isFullyBlocked() and blockWhenNotEditable() helpers to deduplicate guard logic in editable.js - Hoist navigation keys to module-level NAVIGATION_KEYS Set - Collapse composition event tests into it.each
…1695) - Add allowSelectionInViewMode and documentMode params to behavior test harness and fixture config - Add behavior tests verifying: mouse click + keyboard navigation, Shift+Arrow selection extending, Select All, typing/paste/delete blocked, and selection cleared without the flag
…tations (SD-1695) Keyboard selection extending (Shift+Arrow, Cmd+A) doesn't work in PresentationEditor mode because view.editable is false and PM's editHandlers.keydown doesn't run. Replace those tests with triple-click selection (mouse-based) which works correctly.
…on-only view mode (SD-1695) - Allow navigation keys (arrows, Home/End, PageUp/PageDown), Cmd+A, and Shift+Arrow in addition to Cmd+C for keyboard accessibility - Block composition events (compositionstart/update/end) to prevent IME input from mutating the document when view.editable is true due to allowSelectionInViewMode - Add unit tests for keyboard allowlist and composition blocking
…editable extension (SD-1695) - Fix missed allowSelectionInViewMode guard in RAF callback that was clearing selection on the next animation frame, defeating the feature - Extract isFullyBlocked() and blockWhenNotEditable() helpers to deduplicate guard logic in editable.js - Hoist navigation keys to module-level NAVIGATION_KEYS Set - Collapse composition event tests into it.each
…1695) - Add allowSelectionInViewMode and documentMode params to behavior test harness and fixture config - Add behavior tests verifying: mouse click + keyboard navigation, Shift+Arrow selection extending, Select All, typing/paste/delete blocked, and selection cleared without the flag
…tations (SD-1695) Keyboard selection extending (Shift+Arrow, Cmd+A) doesn't work in PresentationEditor mode because view.editable is false and PM's editHandlers.keydown doesn't run. Replace those tests with triple-click selection (mouse-based) which works correctly.
…' of github.com:Harbour-Enterprises/SuperDoc into caio/sd-1695-add-text-selection-support-in-viewing-mode
|
🎉 This PR is included in superdoc v1.18.0-next.58 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.2.0-next.133 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.19.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.3.0 The release is available on GitHub release |
No description provided.