Skip to content

Line Edit: Support Selection #797

Open

Description

@frankmilliron

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

Activity

  1. inexorabletash commented on Jun 14, 2024

    @inexorabletash
    Collaborator

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

  2. changed the title [-]Allow Maps to Select All[/-] [+]Line Edit: Support Selection[/+] on Jun 22, 2024
  3. inexorabletash commented on Jun 22, 2024

    @inexorabletash
    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
      • Potentially OA+X / OA+C / OA+V for cut/copy/paste to a clipboard
    • 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
  4. added
    ToolKitsMouseGraphics, Icon, Button, Line Edit, List Box, etc.
    on Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First BugApproachable project for a new contributorToolKitsMouseGraphics, Icon, Button, Line Edit, List Box, etc.feature requestUser-facing feature additions/enhancements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions