Merge pull request #693 from metamaps/feature/re-enable-search
re-enable Ctrl+/ search box focus shortcut
This commit is contained in:
commit
97c118a20b
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,7 @@ import Realtime from './Realtime'
|
||||||
import Selected from './Selected'
|
import Selected from './Selected'
|
||||||
import Topic from './Topic'
|
import Topic from './Topic'
|
||||||
import Visualize from './Visualize'
|
import Visualize from './Visualize'
|
||||||
|
import { Search } from './GlobalUI'
|
||||||
|
|
||||||
const Listeners = {
|
const Listeners = {
|
||||||
init: function () {
|
init: function () {
|
||||||
|
@ -93,6 +94,11 @@ const Listeners = {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
case 191: // if / is pressed
|
||||||
|
if (e.ctrlKey) {
|
||||||
|
Search.focus()
|
||||||
|
}
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
// console.log(e.which)
|
// console.log(e.which)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue