add del key

This commit is contained in:
Connor Turland 2017-02-01 07:53:53 +00:00
parent a137c21d2d
commit a8c47291cd

View file

@ -113,6 +113,12 @@ const Listeners = {
})
}
break
case 127: // if DEL is pressed
if (e.ctrlKey || e.metaKey) {
e.preventDefault()
Control.deleteSelected()
}
break
case 191: // if / is pressed
if (e.ctrlKey || e.metaKey) {
Search.focus()