Skip to content

Minor: On mac, in a text field, ctrl-a should move the cursor to the start of the line, not select-all #11435

@fredsherbet

Description

@fredsherbet

Version

0.18.2

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

Mac uses emacs key-bindings for text selection/cursor movement. Ctrl-a moves the text-insertion cursor to the start of the line. Crtl-e moves it to the end.

However, in one (or more?) text fields in GitButler, Ctrl-a does a "select all" instead.

I noticed that the commit title box has this broken behaviour, whereas the commit message box has the normal behaviour

Image

Other boxes with the wrong behaviour that I found in a short explore:

  • branch rename box
  • New branch box

How to reproduce (Optional)

  1. Start a new commit
  2. Type some text into the commit title box
  3. Hit ctrl-a
  4. Observe that the text has all been selected

Expected behavior (Optional)

After step 3, I expect the text insertion cursor to have been moved to the start of the commit title box, and for no text to be selected

Relevant log output (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIAny broken visuals like layouts, colors etc.bugSomething isn't workingos:macThe MacOS platform🎉reproduced🎉The issue could be reproduced by following the instructions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions