Support move/select/delete word with keyboard in textbox #63

Merged
MartinFouilleul merged 2 commits from ilidemi/orca:text-box-words into main 2023-08-25 13:50:15 +00:00
Collaborator

Fixes ☐4 from #30. Created #68 to track the remaining gaps.

A simple word break algorithm borrowed from Qt. Proper implementation would involve bringing in ICU or querying unicode ranges and parsing ICU rules but we're not there yet.

Ideally on macos option+right should move to the end of the word instead of the beginning of the next one but this might interact with cycling shift+option+left/shift+option+right and I don't have a mac to map the potential intricacies.

Would appreciate someone testing on a mac.

Fixes ☐4 from #30. Created #68 to track the remaining gaps. A simple word break algorithm borrowed from Qt. Proper implementation would involve bringing in ICU or querying unicode ranges and parsing ICU rules but we're not there yet. Ideally on macos option+right should move to the end of the word instead of the beginning of the next one but this might interact with cycling shift+option+left/shift+option+right and I don't have a mac to map the potential intricacies. Would appreciate someone testing on a mac.
MartinFouilleul force-pushed text-box-words from 76cdd0a89c to 3c199dce34 2023-08-25 13:49:34 +00:00 Compare
MartinFouilleul merged commit 0727466f48 into main 2023-08-25 13:50:15 +00:00
MartinFouilleul deleted branch text-box-words 2023-08-25 13:50:15 +00:00
Collaborator

re: macos option+left/right, I don't know if we want to preserve OS conventions (which aren't necessarily agreed upon by non-Apple applications), or make conventions consistent across Orca apps, independent of the underlying platform...

fwiw, cycling shift+option+left/shift+option+right on TextEdit stops at begining of word / end of word (like shift+left/shift+right would), plus on the original cursor position (see video attached)

re: macos option+left/right, I don't know if we want to preserve OS conventions (which aren't necessarily agreed upon by non-Apple applications), or make conventions consistent across Orca apps, independent of the underlying platform... fwiw, cycling shift+option+left/shift+option+right on TextEdit stops at begining of word / end of word (like shift+left/shift+right would), plus on the original cursor position (see video attached)
Sign in to join this conversation.
No reviewers
No Label
macOS
windows
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#63
No description provided.