mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
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:
parent
b92654ca08
commit
925bdcd38b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user