fix keyboard navigation for string annotation bins with newline separator
This commit is contained in:
parent
8ea30caf4d
commit
6618809eb5
1 changed files with 12 additions and 4 deletions
|
@ -90,10 +90,18 @@ Ox.ArrayEditable = function(options, self) {
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
key_escape: selectNone,
|
key_escape: selectNone,
|
||||||
key_down: self.options.type == 'input' ? selectLast : selectNext,
|
key_down: self.options.type == 'input'
|
||||||
key_left: self.options.type == 'input' ? selectPrevious : selectFirst,
|
&& !Ox.contains(self.options.separator, '<br')
|
||||||
key_right: self.options.type == 'input' ? selectNext : selectLast,
|
? selectLast : selectNext,
|
||||||
key_up: self.options.type == 'input' ? selectFirst : selectPrevious,
|
key_left: self.options.type == 'input'
|
||||||
|
&& !Ox.contains(self.options.separator, '<br')
|
||||||
|
? selectPrevious : selectFirst,
|
||||||
|
key_right: self.options.type == 'input'
|
||||||
|
&& !Ox.contains(self.options.separator, '<br')
|
||||||
|
? selectNext : selectLast,
|
||||||
|
key_up: self.options.type == 'input'
|
||||||
|
&& !Ox.contains(self.options.separator, '<br')
|
||||||
|
? selectFirst : selectPrevious,
|
||||||
singleclick: singleclick,
|
singleclick: singleclick,
|
||||||
touchstart: singleclick
|
touchstart: singleclick
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue