removed space
This commit is contained in:
parent
7c8c3cb18f
commit
a24e84b6fe
@ -84,22 +84,22 @@ export class PageIndicatorComponent implements OnChanges, OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
@HostListener('window:keydown', ['$event'])
|
||||
handleKeyDown(event: KeyboardEvent) {
|
||||
if (this.canMarkPagesAsViewed) {
|
||||
if (this.active && event.key === ' ') {
|
||||
if (
|
||||
document.activeElement &&
|
||||
document.activeElement.className.indexOf('activePanel') >= 0
|
||||
) {
|
||||
this.toggleReadState();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// @HostListener('window:keydown', ['$event'])
|
||||
// handleKeyDown(event: KeyboardEvent) {
|
||||
// if (this.canMarkPagesAsViewed) {
|
||||
// if (this.active && event.key === ' ') {
|
||||
// if (
|
||||
// document.activeElement &&
|
||||
// document.activeElement.className.indexOf('activePanel') >= 0
|
||||
// ) {
|
||||
// this.toggleReadState();
|
||||
// event.stopPropagation();
|
||||
// event.preventDefault();
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
toggleReadState() {
|
||||
if (this.canMarkPagesAsViewed) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user