From 78f738b34c3e0d51d2cebef8c9440dd69a77e848 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 27 Jan 2017 21:23:55 -0800 Subject: WIP --- ext/fg/js/driver.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ext/fg/js') 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(); -- cgit v1.2.3