Content
View differences
Updated by Oliver Günther over 3 years ago
**As** a user
**I want to** press CMD+ENTER (Mac) , `CTRL+ENTER` (Win/Linux)
**so that** the comment I'm writing or the wp-description I'm editing is closed (with saving)
**Acceptance criteria**
* As soon as I hit CMD+ENTER (Mac) , `CTRL+ENTER` (Win/Linux), CMD+ENTER, handle as if the user pressed the check mark in the lower right corner of a text editing field
This should be done as a user expects that to work this way -- There are usually two design approaches when it comes to text fields that can be send/closed/saved: the first one is to have ENTER be the "closing command". This is common for messaging apps. It's implemented that way in iMessage, Discord, WhatsApp etc. Adding an actual new line would be SHIFT+ENTER. In more complex text editors (that include styling as OpenProject does) SHIFT+ENTER adds a line break inside the paragraph, while ENTER starts a new paragraph. It is typical for these kinds of editors to implement CMD+ENTER to save the changes you've made.
**Open issues**
CKEditor uses CTRL+enter to check/uncheck todo lists by default:
[https://ckeditor.com/docs/ckeditor5/latest/features/lists/todo-lists.html#keyboard-support](https://ckeditor.com/docs/ckeditor5/latest/features/lists/todo-lists.html#keyboard-support)
**I want to** press CMD+ENTER (Mac) , `CTRL+ENTER` (Win/Linux)
**so that** the comment I'm writing or the wp-description I'm editing is closed (with saving)
**Acceptance criteria**
* As soon as I hit CMD+ENTER (Mac) , `CTRL+ENTER` (Win/Linux),
This should be done as a user expects that to work this way -- There are usually two design approaches when it comes to text fields that can be send/closed/saved: the first one is to have ENTER be the "closing command". This is common for messaging apps. It's implemented that way in iMessage, Discord, WhatsApp etc. Adding an actual new line would be SHIFT+ENTER. In more complex text editors (that include styling as OpenProject does) SHIFT+ENTER adds a line break inside the paragraph, while ENTER starts a new paragraph. It is typical for these kinds of editors to implement CMD+ENTER to save the changes you've made.
**Open issues**
CKEditor uses CTRL+enter to check/uncheck todo lists by default:
[https://ckeditor.com/docs/ckeditor5/latest/features/lists/todo-lists.html#keyboard-support](https://ckeditor.com/docs/ckeditor5/latest/features/lists/todo-lists.html#keyboard-support)