Skip to content

Commit 721af3a

Browse files
Merge pull request #880 from nextcloud/fix/873-newlines-in-instructions
Allow for newlines in multiline text to be inserted with shift+enter
2 parents d5d41a3 + 13a129f commit 721af3a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[#878](https://github.com./nextcloud/cookbook/pull/878) @christianlupus
66
- Added unit hints in the labels of the timers
77
[#879](https://github.com./nextcloud/cookbook/pull/879) @christianlupus
8+
- Allow for multiline text in instructions
9+
[#880](https://github.com./nextcloud/cookbook/pull/880) @christianlupus
810

911

1012
## 0.9.9 - 2022-01-13

src/components/EditInputGroup.vue

+7
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ export default {
223223
this.ignoreNextKeyUp = false
224224
return
225225
}
226+
227+
// Allow new lines with shift key
228+
if ((e.keyCode === 13 || e.keyCode === 10) && e.shiftKey) {
229+
// Do nothing here, user wants a line break
230+
return
231+
}
232+
226233
// Using keyup for trigger will prevent repeat triggering if key is held down
227234
if (
228235
e.keyCode === 13 ||

0 commit comments

Comments
 (0)