emoji-picker: Disable using the right arrow to initiate keyboard nav

This commit is contained in:
JC Brand 2020-02-05 18:02:52 +01:00
parent fdc8acf39f
commit 985a0e4f4e

View File

@ -337,13 +337,7 @@ converse.plugins.add('converse-emoji-views', {
},
onKeyDown (ev) {
if (ev.keyCode === converse.keycodes.RIGHT_ARROW) {
ev.preventDefault();
ev.stopPropagation();
ev.target.blur();
const first_el = this.el.querySelector('.pick-category');
this.navigator.select(first_el, 'right');
} else if (ev.keyCode === converse.keycodes.TAB) {
if (ev.keyCode === converse.keycodes.TAB) {
if (ev.target.value) {
ev.preventDefault();
const match = find(_converse.emoji_shortnames, sn => _converse.FILTER_CONTAINS(sn, ev.target.value));