]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
publish comment on crtl-enter (#290)
authorjonathanraes <jonathanraes@users.noreply.github.com>
Mon, 12 Feb 2018 16:23:30 +0000 (17:23 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 12 Feb 2018 16:23:30 +0000 (17:23 +0100)
client/src/app/videos/+video-watch/comment/video-comment-add.component.html

index 41d00da085e319c4ca3621edd05ebd43f23e7766..865908ba43f96591f895d15a35656ae2cc9facc8 100644 (file)
@@ -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">