Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

publish comment on crtl-enter (#290)

jonathanraesd169c4ad4629
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
index 41d00da085..865908ba43 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
@@ -3,7 +3,8 @@
<img [src]="getUserAvatarUrl()" alt="Avatar" />
<div class="form-group">
- <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }" #textarea>
+ <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
+ (keyup.control.enter)="formValidated()" (keyup.meta.enter)="formValidated()" #textarea>
</textarea>
<div *ngIf="formErrors.text" class="form-error">