| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,5 @@ | |||
| 7 | 7 | </div> | |
| 8 | 8 | <tb-keyboard class="keyboard" | |
| 9 | 9 | id="keyboard" | |
| 10 | - *ngIf="inputFocused != null" | ||
| 11 | - (viewInitialized)="onKeyboardViewInit()"> | ||
| 10 | + *ngIf="inputFocused != null"> | ||
| 12 | 11 | </tb-keyboard> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,11 +40,4 @@ export class KeyboardContainerComponent implements OnInit, OnDestroy { | |||
| 40 | 40 | } | |
| 41 | 41 | } | |
| 42 | 42 | ||
| 43 | - onKeyboardViewInit() { | ||
| 44 | - | ||
| 45 | - if (this.inputFocused != null) { | ||
| 46 | - this.inputFocused.scrollIntoView(); | ||
| 47 | - } | ||
| 48 | - } | ||
| 49 | - | ||
| 50 | 43 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,10 +11,9 @@ import {AngularKeyboardService} from '../angular-keyboard.service'; | |||
| 11 | 11 | ], | |
| 12 | 12 | changeDetection: ChangeDetectionStrategy.OnPush | |
| 13 | 13 | }) | |
| 14 | - export class KeyboardComponent implements OnInit, AfterViewInit { | ||
| 14 | + export class KeyboardComponent implements OnInit { | ||
| 15 | 15 | ||
| 16 | 16 | @Output() pressedKey = new EventEmitter(); | |
| 17 | - @Output() viewInitialized = new EventEmitter(); | ||
| 18 | 17 | ||
| 19 | 18 | readonly keyboardCommandButton = KeyboardCommandButton; | |
| 20 | 19 | ||
@@ -64,10 +63,6 @@ export class KeyboardComponent implements OnInit, AfterViewInit { | |||
| 64 | 63 | private keyboardService: AngularKeyboardService | |
| 65 | 64 | ) { } | |
| 66 | 65 | ||
| 67 | - ngAfterViewInit() { | ||
| 68 | - this.viewInitialized.emit(); | ||
| 69 | - } | ||
| 70 | - | ||
| 71 | 66 | get shiftPressed() { | |
| 72 | 67 | return this._shiftPressed; | |
| 73 | 68 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments