From 0c169f6419faeb12c74d121ddd0d64a3fa240be4 Mon Sep 17 00:00:00 2001 From: HuangZhaojian Date: Thu, 17 Mar 2016 23:08:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AE=89=E5=8D=93QQ=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E5=BC=B9=E5=87=BA=E8=BD=AF=E9=94=AE=E7=9B=98=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/calendar.js | 4 ++-- js/device.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/calendar.js b/js/calendar.js index b4502a1c..24cfbd7e 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -653,8 +653,8 @@ // Input Events function openOnInput(e) { e.preventDefault(); - // 安卓微信webviewreadonly的input依然弹出软键盘问题修复 - if ($.device.isWeixin && $.device.android && p.params.inputReadOnly) { + // 安卓微信和QQ webviewreadonly的input依然弹出软键盘问题修复 + if (($.device.isWeixin || $.device.isQQ) && $.device.android && p.params.inputReadOnly) { /*jshint validthis:true */ this.focus(); this.blur(); diff --git a/js/device.js b/js/device.js index 0a6f599e..f2cf1d5e 100644 --- a/js/device.js +++ b/js/device.js @@ -101,6 +101,7 @@ Device/OS Detection // keng.. device.isWeixin = /MicroMessenger/i.test(ua); + device.isQQ = /MQQBrowser/i.test(ua) && /QQ\//i.test(ua); $.device = device; })(Zepto);