Commit ff799a41 authored by JC Brand's avatar JC Brand

emoji-views: handle navigator not being instantiated yet

parent ee9c29d1
......@@ -331,6 +331,9 @@ converse.plugins.add('converse-emoji-views', {
},
_onGlobalKeyDown (ev) {
if (!this.navigator) {
return;
}
if (ev.keyCode === converse.keycodes.ENTER &&
this.navigator.selected &&
u.isVisible(this.el)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment