diff --git a/projects/ui/src/lib/components/po-field/po-input/po-input-base.component.ts b/projects/ui/src/lib/components/po-field/po-input/po-input-base.component.ts index dbe2b1d010..7811a509f9 100644 --- a/projects/ui/src/lib/components/po-field/po-input/po-input-base.component.ts +++ b/projects/ui/src/lib/components/po-field/po-input/po-input-base.component.ts @@ -114,6 +114,15 @@ export abstract class PoInputBaseComponent implements ControlValueAccessor, Vali */ @Output('p-blur') blur: EventEmitter = new EventEmitter(); + /** + * @optional + * + * @description + * + * Evento disparado ao pressionar tecla enter. + */ + @Output('p-enter-click') enterClick: EventEmitter = new EventEmitter(); + /** * @optional * diff --git a/projects/ui/src/lib/components/po-field/po-input/po-input.component.html b/projects/ui/src/lib/components/po-field/po-input/po-input.component.html index b29e18b001..6aa0c273af 100644 --- a/projects/ui/src/lib/components/po-field/po-input/po-input.component.html +++ b/projects/ui/src/lib/components/po-field/po-input/po-input.component.html @@ -32,6 +32,7 @@ (click)="eventOnClick($event)" (focus)="eventOnFocus($event)" (input)="eventOnInput($event)" + (keyup.enter)="enterClick.emit($event.target)" />