Tokenize2 has the same issue with blur as https://github.com/opnsense/core/issues/1689, hook tab to blur event

This commit is contained in:
Ad Schellevis 2018-06-15 15:18:03 +02:00
parent b92654ca08
commit 925bdcd38b

View File

@ -230,6 +230,13 @@ function formatTokenizersUI() {
sender.trigger("tokenize:tokens:change");
});
// hook keydown -> tab to blur event
sender.on('tokenize:deselect', function(){
var e = $.Event("keydown");
e.keyCode = 9;
sender.tokenize2().trigger('tokenize:keydown', [e]);
});
sender.addClass('tokenize2_init_done');
} else {
// unbind change event while loading initial content