Commit 985a0e4f authored by JC Brand's avatar JC Brand

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

parent fdc8acf3
...@@ -337,13 +337,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -337,13 +337,7 @@ converse.plugins.add('converse-emoji-views', {
}, },
onKeyDown (ev) { onKeyDown (ev) {
if (ev.keyCode === converse.keycodes.RIGHT_ARROW) { if (ev.keyCode === converse.keycodes.TAB) {
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.target.value) { if (ev.target.value) {
ev.preventDefault(); ev.preventDefault();
const match = find(_converse.emoji_shortnames, sn => _converse.FILTER_CONTAINS(sn, ev.target.value)); const match = find(_converse.emoji_shortnames, sn => _converse.FILTER_CONTAINS(sn, ev.target.value));
......
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