From 6618809eb53a07419cd3acebabeb7d7784a0a72c Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 12 Sep 2018 19:49:37 +0200 Subject: [PATCH] fix keyboard navigation for string annotation bins with newline separator --- source/UI/js/Form/ArrayEditable.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/source/UI/js/Form/ArrayEditable.js b/source/UI/js/Form/ArrayEditable.js index 3fa5af39..c7be65be 100644 --- a/source/UI/js/Form/ArrayEditable.js +++ b/source/UI/js/Form/ArrayEditable.js @@ -90,10 +90,18 @@ Ox.ArrayEditable = function(options, self) { }, 0); }, key_escape: selectNone, - key_down: self.options.type == 'input' ? selectLast : selectNext, - key_left: self.options.type == 'input' ? selectPrevious : selectFirst, - key_right: self.options.type == 'input' ? selectNext : selectLast, - key_up: self.options.type == 'input' ? selectFirst : selectPrevious, + key_down: self.options.type == 'input' + && !Ox.contains(self.options.separator, '