Select2 4.0.13.
I have tried some way, but event never fire.
$(document).on(‘keydown’, ‘.select2-selection’, function(event) {
// some code;
});
$(document).on(‘keydown’, ‘.select2-search__field’, function(event) {
// some code;
});
Note: keyup event fire good, but I need keydown event, to prevent browser default actions.