Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Edit: Support Selection #797

Open
frankmilliron opened this issue Jun 14, 2024 · 2 comments
Open

Line Edit: Support Selection #797

frankmilliron opened this issue Jun 14, 2024 · 2 comments
Labels
feature request User-facing feature additions/enhancements Good First Bug Approachable project for a new contributor

Comments

@frankmilliron
Copy link
Contributor

Just a thought...
Allow double-clicking on the typed city name or OA-A to select all in Maps entry box.

@frankmilliron frankmilliron added Desk Accessories DA bugs, feature requests, or new DA requests feature request User-facing feature additions/enhancements labels Jun 14, 2024
@inexorabletash
Copy link
Collaborator

Line Edit controls don't have support for selection. So it's not just a Maps thing.

@inexorabletash inexorabletash changed the title Allow Maps to Select All Line Edit: Support Selection Jun 22, 2024
@inexorabletash inexorabletash removed the Desk Accessories DA bugs, feature requests, or new DA requests label Jun 22, 2024
@inexorabletash
Copy link
Collaborator

Renamed the issue. The work needed would be:

  • LineEditRecord replace caret_pos with sel_start and sel_end
  • When sel_start == sel_end then show a blinking caret as today
  • Otherwise, draw the selected range in inverse.
  • Keyboard
    • Left/Right Arrow - if selection, collapse selection to start/end
    • OA/SA + Left/Right Arrow - if selection, collapse selection and move caret to start/end of string
    • Shift + Left/Right Arrow - move start/end of selection one character
    • OA/SA + Shift + Left/Right Arrow - move start/end of selection to start/end of string
    • Backspace, Ctrl+F, Ctrl+X - if selection, delete selection
    • Printable - if selection, replace selection / insert character
  • Mouse
    • Double-click - select all
    • Mouse drag - select dragged range
    • Mouse click - collapse selection, place caret
  • API
    • Option when initializing to select all or just caret

@inexorabletash inexorabletash added the Good First Bug Approachable project for a new contributor label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request User-facing feature additions/enhancements Good First Bug Approachable project for a new contributor
Projects
None yet
Development

No branches or pull requests

2 participants