fix: 🐛 preventScroll when focus graph (#1116)

This commit is contained in:
vector
2021-06-19 14:29:01 +08:00
committed by GitHub
parent 2d634c71be
commit 40a18f7fe6

View File

@ -73,7 +73,9 @@ export class Keyboard extends Disposable implements IDisablable {
private focus() {
const target = this.target as HTMLElement
target.focus()
target.focus({
preventScroll: true,
})
}
private getKeys(keys: string | string[]) {