emoji-picker: Disable using the right arrow to initiate keyboard nav
This commit is contained in:
parent
fdc8acf39f
commit
985a0e4f4e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user