RED-8183: close the box upon pressing esc.
This commit is contained in:
parent
0fd56e7329
commit
38e3fac70e
@ -101,6 +101,13 @@ export class UserManagementComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
@HostListener('document:keyup', ['$event'])
|
||||
handleEsc($event: KeyboardEvent) {
|
||||
if ($event.key === 'Escape' && this.editingReviewer) {
|
||||
this.editingReviewer = false;
|
||||
}
|
||||
}
|
||||
|
||||
#customSort(ids: string[]) {
|
||||
let sorted = [...ids].sort((a, b) => this.userService.getName(a).localeCompare(this.userService.getName(b)));
|
||||
sorted = moveElementInArray(sorted, this._currentUserId, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user