Hide virtual keyboard when tapping select elements

This commit is contained in:
champsupertramp
2016-01-13 13:08:13 +08:00
parent a05cf7e5f1
commit 90f3a4b9b6
+8 -1
View File
@@ -869,6 +869,7 @@ function um_reset_field( dOm ){
jQuery(function(){
// Submit search form on keypress 'Enter'
jQuery(".um-search form *").keypress(function(e){
if (e.which == 13) {
jQuery('.um-search form').submit();
@@ -876,4 +877,10 @@ jQuery(function(){
}
});
});
// Fixed touchscreen sensitivity
jQuery(document).on('touchend', function(){
jQuery(".select2-search, .select2-focusser").remove();
})
});