From 90f3a4b9b6542e19d52d1ddc331d0e01aacceee6 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 13 Jan 2016 13:08:13 +0800 Subject: [PATCH] Hide virtual keyboard when tapping select elements --- assets/js/um-functions.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/js/um-functions.js b/assets/js/um-functions.js index 1bbc1c78..f834753c 100644 --- a/assets/js/um-functions.js +++ b/assets/js/um-functions.js @@ -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(){ } }); -}); \ No newline at end of file + // Fixed touchscreen sensitivity + jQuery(document).on('touchend', function(){ + jQuery(".select2-search, .select2-focusser").remove(); + }) + +}); +