var AllowClear = $.fn.select2.amd.require('select2/selection/allowClear');
var _handleKeyboardClearOriginal = AllowClear.prototype._handleKeyboardClear;
AllowClear.prototype._handleKeyboardClear = function(_, evt, container) {
if (this.$element.prop('multiple')) {
return;
}
_handleKeyboardClearOriginal.call(this, _, evt, container);
};