WIP
This commit is contained in:
parent
1d49473c1f
commit
78f738b34c
@ -31,7 +31,6 @@ class Driver {
|
|||||||
window.addEventListener('mouseover', this.onMouseOver.bind(this));
|
window.addEventListener('mouseover', this.onMouseOver.bind(this));
|
||||||
window.addEventListener('mousedown', this.onMouseDown.bind(this));
|
window.addEventListener('mousedown', this.onMouseDown.bind(this));
|
||||||
window.addEventListener('mousemove', this.onMouseMove.bind(this));
|
window.addEventListener('mousemove', this.onMouseMove.bind(this));
|
||||||
window.addEventListener('keydown', this.onKeyDown.bind(this));
|
|
||||||
window.addEventListener('resize', e => this.searchClear());
|
window.addEventListener('resize', e => this.searchClear());
|
||||||
|
|
||||||
getOptions().then(options => {
|
getOptions().then(options => {
|
||||||
@ -54,16 +53,6 @@ class Driver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyDown(e) {
|
|
||||||
this.popupTimerClear();
|
|
||||||
|
|
||||||
if (this.enabled && this.lastMousePos !== null && e.keyCode === 16 /* shift */) {
|
|
||||||
this.searchAt(this.lastMousePos, true);
|
|
||||||
} else if (e.keyCode === 27 /* esc */) {
|
|
||||||
this.searchClear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onMouseOver(e) {
|
onMouseOver(e) {
|
||||||
if (e.target === this.popup.container && this.popuptimer !== null) {
|
if (e.target === this.popup.container && this.popuptimer !== null) {
|
||||||
this.popupTimerClear();
|
this.popupTimerClear();
|
||||||
|
Loading…
Reference in New Issue
Block a user