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

Shortcut to enter new lines #47

Closed
nebbles opened this issue Jan 17, 2020 · 1 comment
Closed

Shortcut to enter new lines #47

nebbles opened this issue Jan 17, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@nebbles
Copy link
Owner

nebbles commented Jan 17, 2020

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.

@nebbles nebbles added the enhancement New feature or request label Jan 17, 2020
@nebbles nebbles closed this as completed in dc63cbb May 8, 2020
@nebbles
Copy link
Owner Author

nebbles commented May 8, 2020

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant