Polish 4 (#3363)
This commit is contained in:
parent
2d5a7a3606
commit
7c4d7dc821
26 changed files with 182 additions and 245 deletions
|
|
@ -49,19 +49,6 @@ export class ReadingListsComponent implements OnInit {
|
|||
globalActions: Array<ActionItem<any>> = [];
|
||||
trackByIdentity = (index: number, item: ReadingList) => `${item.id}_${item.title}_${item.promoted}`;
|
||||
|
||||
@HostListener('document:keydown.shift', ['$event'])
|
||||
handleKeypress(event: KeyboardEvent) {
|
||||
if (event.key === KEY_CODES.SHIFT) {
|
||||
this.bulkSelectionService.isShiftDown = true;
|
||||
}
|
||||
}
|
||||
|
||||
@HostListener('document:keyup.shift', ['$event'])
|
||||
handleKeyUp(event: KeyboardEvent) {
|
||||
if (event.key === KEY_CODES.SHIFT) {
|
||||
this.bulkSelectionService.isShiftDown = false;
|
||||
}
|
||||
}
|
||||
|
||||
constructor(private readingListService: ReadingListService, public imageService: ImageService, private actionFactoryService: ActionFactoryService,
|
||||
private accountService: AccountService, private toastr: ToastrService, private router: Router,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue