Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Shortcut to enter new lines #47

Closed
Closed

Description

@nebbles

Alternative means to entering new lines in a multi-line text entry (currently Enter, preceded by Esc if you want to submit).

Option 1 (closest to current):

  • If the field is empty, Enter will submit the field as empty. [existing]
  • Enter will add a new line return. [existing]
  • Esc immediately preceding Enter will mean field is submitted. [existing]
  • Cmd+Enter shortcut will submit the field without need for Esc key. [new]
  • Shift+Enter shortcut will submit the field too? [new]

Option 2:

  • Enter key will always submit the field.
  • Shift+Enter to add new line return.

Configuration file could allow setting preference for this behaviour.

Activity

  1. nebbles commented on May 8, 2020

    @nebbles
    OwnerAuthor

    Due to issues with mapping the shift+enter or cmd+enter (mac) in a terminal this requires a change in approach.

    The control mapping will be as follows:

    • If the field is empty, Enter will submit the field as empty. ✔︎ implemented

    • If the field has text in it, Enter will instead add a new line. ✔︎ implemented

    • Esc immediately preceding Enter will always submit a field. ✔︎ implemented

    • Shift+Down will submit the field. ✔︎ dc63cbb implemented

    • Shift+Up will move the focus of the current field back to the previous question. Keyboard shortcut to go to previous question/stage #32

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions