|
|
@@ -1127,6 +1127,12 @@ class ReceiverEditController {
|
|
|
this.execute = new ExecuteService($log, $timeout, 1000);
|
|
|
}
|
|
|
|
|
|
+ public keypress($event: KeyboardEvent): void {
|
|
|
+ if ($event.key === 'Enter' && this.controllerModel.isValid()) {
|
|
|
+ this.save();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public save(): void {
|
|
|
|
|
|
// show loading
|
|
|
@@ -1241,6 +1247,12 @@ class ReceiverCreateController {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ public keypress($event: KeyboardEvent): void {
|
|
|
+ if ($event.key === 'Enter' && this.controllerModel.isValid()) {
|
|
|
+ this.create();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public create(): void {
|
|
|
// show loading
|
|
|
this.loading = true;
|