aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/driver.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-27 21:23:55 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-27 21:23:55 -0800
commit78f738b34c3e0d51d2cebef8c9440dd69a77e848 (patch)
tree986a916af16e89d72e7ab03707114fa4b4726e10 /ext/fg/js/driver.js
parent1d49473c1fe054e969004d483cb86fcd979b8d0d (diff)
WIP
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r--ext/fg/js/driver.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js
index 974c4f28..5467a9f0 100644
--- a/ext/fg/js/driver.js
+++ b/ext/fg/js/driver.js
@@ -31,7 +31,6 @@ class Driver {
window.addEventListener('mouseover', this.onMouseOver.bind(this));
window.addEventListener('mousedown', this.onMouseDown.bind(this));
window.addEventListener('mousemove', this.onMouseMove.bind(this));
- window.addEventListener('keydown', this.onKeyDown.bind(this));
window.addEventListener('resize', e => this.searchClear());
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) {
if (e.target === this.popup.container && this.popuptimer !== null) {
this.popupTimerClear();