re-enable Ctrl+/ search box focus shortcut

This commit is contained in:
Devin Howard 2016-09-30 11:33:39 +08:00
parent e916ea32dc
commit b396b94477

View file

@ -8,6 +8,7 @@ import Realtime from './Realtime'
import Selected from './Selected'
import Topic from './Topic'
import Visualize from './Visualize'
import { Search } from './GlobalUI'
const Listeners = {
init: function () {
@ -93,6 +94,11 @@ const Listeners = {
})
}
break
case 191: // if / is pressed
if (e.ctrlKey) {
Search.focus()
}
break
default:
// console.log(e.which)
break