 		tabView.addEventListener('click', tabsterSwitchTab.bind(this, tab.id), false)
 
 	overflow.className += " visible"
+	tabsterActive = true
 
 tabsterSwitchTab = (id) ->
 	tabsterClose()

port = chrome.runtime.connect()
overflow = undefined
tabsView = undefined

baseKeys = ['a', 's', 'd', 'f', 'h', 'j', 'k', 'l']
keys = []


tabsterClose = () ->
	overflow.className = 'tabster-overflow'
	tabsterActive = false

handleKeyEvents = (e) ->
	return e unless (tabsterActive)
	e.preventDefault()
	if 27 == e.keyCode
		tabsterClose()

addEvents = () ->
	document.addEventListener('keyup', handleKeyEvents, false)
