Skip to content

Commit

Permalink
Revert "fix: 优化切换tab事件监听方法"
Browse files Browse the repository at this point in the history
This reverts commit 2c5ba60.
  • Loading branch information
huailei000 authored and BaiJiangJie committed Sep 13, 2022
1 parent c3886b9 commit 71f72e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/pages/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export class AppComponent {
public viewSrv: ViewService
) {}
@HostListener('window:keydown', ['$event'])
onKeyDown($event: KeyboardEvent) {
$event.stopPropagation();
onKeyPress($event: KeyboardEvent) {
const condition = this.viewSrv.viewList.length > 1 && $event.shiftKey;
if (condition && $event.keyCode === 37) {
this.viewSrv.switchView('left');
Expand Down

0 comments on commit 71f72e5

Please sign in to comment.