Skip to content

Triple click in TextBox does not select all text #1162

Open

Description

@batzen
  • .NET Core Version: All
  • Windows version: 1903
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:
Triple clicking in a TextBox does not select all text in the TextBox.

Actual behavior:
Triple clicking in a TextBox does not select all text in the TextBox.

Expected behavior:
Triple clicking in a TextBox should select all text.

Minimal repro:

  • Create a window containing a TextBox
  • Write some text into the TextBox
  • Triple click with the mouse

Activity

  1. lindexi commented on Jul 5, 2019

    @lindexi
    Member

    I do not think it a good feature that it change the behavior. Because I use Triple clicking in a TextBox does not select all text in the TextBox. feature to write my bussiness code. o(╥﹏╥)o

    If your code be merged, I should change my exist code...

  2. weltkante commented on Jul 5, 2019

    @weltkante

    Sooner or later WPF needs to add new input gestures and there is always the risk that some application already was using a previously unused input gesture for its own purpose. I think its a good start to think about how to deal with that here, while triple click is not a standard Windows gesture "select all text" is a common enough interpretation of that gesture to support it by default. Maybe it can be implemented by default and disabled by a switch if someone was already using this gesture for his own purpose. Or if you think that too risky, disable it by default and let people opt in to triple clicks.

  3. mdtauk commented on Jul 5, 2019

    @mdtauk

    Triple clicking is the expected behaviour in Windows 10, as used by UWP XAML.
    Win32's Edit control only has single click to focus, and double click to select the word the cursor is over.

  4. added
    Enhancement Requested
    on Jul 8, 2019
  5. added this to the Future milestone on Jul 8, 2019
  6. miloush commented on Aug 4, 2019

    @miloush
    Contributor

    On the other hand, triple click in Word selects the paragraph, not all text.

    I would prefer the controls to be consistent with native controls, and I think this case in particular might be quite impactful compatibility issue.

  7. batzen commented on Aug 4, 2019

    @batzen
    ContributorAuthor

    It behaves that way for a rich textbox. The change i made does not change the behavior for controls with rich content.

  8. batzen commented on Apr 26, 2020

    @batzen
    ContributorAuthor

    @grubioe any news on this?

  9. grubioe commented on Apr 27, 2020

    @grubioe
    Contributor

    @fabiant3 can provide the latest status.

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

    Enhancement Requested

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions